Merge pull request #496 from nix-community/fetched-projectdir-test

tests: Add test for IFD projectDir
This commit is contained in:
adisbladis 2022-01-11 10:05:57 +12:00 committed by GitHub
commit bc70a5c975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View file

@ -409,6 +409,13 @@ self: super:
}
);
fastapi = super.fastapi.overridePythonAttrs (
old: {
# Note: requires full flit, not just flit-core
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.flit ];
}
);
fastecdsa = super.fastecdsa.overridePythonAttrs (old: {
buildInputs = old.buildInputs ++ [ pkgs.gmp.dev ];
});
@ -1380,6 +1387,7 @@ self: super:
pkgs.qt5.qtsvg
pkgs.qt5.qtdeclarative
pkgs.qt5.qtwebchannel
pkgs.qt5.qt3d
# self.pyqt5-sip
self.sip
]

View file

@ -63,6 +63,7 @@ builtins.removeAttrs
jq = callTest ./jq { };
awscli = callTest ./awscli { };
aiopath = callTest ./aiopath { };
fetched-projectdir = callTest ./fetched-projectdir { };
# Test building poetry
inherit poetry;

View file

@ -0,0 +1,11 @@
{ lib, poetry2nix, python39, fetchFromGitHub }:
poetry2nix.mkPoetryApplication {
projectDir = fetchFromGitHub {
owner = "schemathesis";
repo = "schemathesis";
rev = "v3.12.1";
sha256 = "sha256-iU1tsA9MKKH/zjuBxD5yExJOPoL2V/OG3WYc9w0do9I=";
};
python = python39;
}