mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Merge pull request #496 from nix-community/fetched-projectdir-test
tests: Add test for IFD projectDir
This commit is contained in:
commit
bc70a5c975
3 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
]
|
||||
|
|
|
@ -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;
|
||||
|
|
11
tests/fetched-projectdir/default.nix
Normal file
11
tests/fetched-projectdir/default.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Reference in a new issue