nixpkgs/pkgs/development/python-modules/attrs/tests.nix
Luke Granger-Brown 3d568360e7
python3Packages.attrs: separate test run into a separate tests attribute.
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.
2021-06-21 16:48:39 -07:00

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
];
}