mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -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 (
|
||||
old: rec {
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],'
|
||||
'';
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||
doCheck = false;
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -90,9 +89,8 @@ self: super:
|
|||
|
||||
faker = super.faker.overrideAttrs (
|
||||
old: {
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],' || true
|
||||
'';
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||
doCheck = false;
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -108,9 +106,8 @@ self: super:
|
|||
|
||||
grandalf = super.grandalf.overrideAttrs (
|
||||
old: {
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "setup_requires=['pytest-runner',]," "setup_requires=[]," || true
|
||||
'';
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||
doCheck = false;
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -240,9 +237,8 @@ self: super:
|
|||
|
||||
mccabe = super.mccabe.overrideAttrs (
|
||||
old: {
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," "setup_requires=[]," || true
|
||||
'';
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||
doCheck = false;
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -393,9 +389,8 @@ self: super:
|
|||
|
||||
pylint = super.pylint.overrideAttrs (
|
||||
old: {
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],'
|
||||
'';
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
|
||||
doCheck = false;
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue