mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Add pytest-runner where needed
Instead of patching around in setup.py which isn't very reliable at all add pytest-runner to propagatedBuildInputs where necessary and set `doCheck=false`.
This commit is contained in:
parent
99f885eb77
commit
7f32c6d559
1 changed files with 10 additions and 15 deletions
|
@ -8,9 +8,8 @@ self: super:
|
||||||
{
|
{
|
||||||
astroid = super.astroid.overrideAttrs (
|
astroid = super.astroid.overrideAttrs (
|
||||||
old: rec {
|
old: rec {
|
||||||
postPatch = ''
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||||
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],'
|
doCheck = false;
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -90,9 +89,8 @@ self: super:
|
||||||
|
|
||||||
faker = super.faker.overrideAttrs (
|
faker = super.faker.overrideAttrs (
|
||||||
old: {
|
old: {
|
||||||
postPatch = ''
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||||
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],' || true
|
doCheck = false;
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -108,9 +106,8 @@ self: super:
|
||||||
|
|
||||||
grandalf = super.grandalf.overrideAttrs (
|
grandalf = super.grandalf.overrideAttrs (
|
||||||
old: {
|
old: {
|
||||||
postPatch = ''
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||||
substituteInPlace setup.py --replace "setup_requires=['pytest-runner',]," "setup_requires=[]," || true
|
doCheck = false;
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -240,9 +237,8 @@ self: super:
|
||||||
|
|
||||||
mccabe = super.mccabe.overrideAttrs (
|
mccabe = super.mccabe.overrideAttrs (
|
||||||
old: {
|
old: {
|
||||||
postPatch = ''
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||||
substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," "setup_requires=[]," || true
|
doCheck = false;
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -393,9 +389,8 @@ self: super:
|
||||||
|
|
||||||
pylint = super.pylint.overrideAttrs (
|
pylint = super.pylint.overrideAttrs (
|
||||||
old: {
|
old: {
|
||||||
postPatch = ''
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||||
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],'
|
doCheck = false;
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue