forked from mirrors/nixpkgs
3d568360e7
This resolves a circular dependency issue between pytest and attrs, by instead building a separate output that _just_ contains the tests from the original package, which is then consumed by a separate tests derivation. The downside of this approach is that these tests will not be run on Hydra. They're not being run on Hydra at the moment, either, since doCheck is false.
22 lines
276 B
Nix
22 lines
276 B
Nix
{ buildPythonPackage
|
|
, pytestCheckHook
|
|
, attrs
|
|
, hypothesis
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "attrs-tests";
|
|
inherit (attrs) version;
|
|
|
|
srcs = attrs.testout;
|
|
|
|
dontBuild = true;
|
|
dontInstall = true;
|
|
|
|
checkInputs = [
|
|
attrs
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
}
|