python310Packages.pluggy: run tests
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
, setuptools-scm
|
||||
, pythonOlder
|
||||
, importlib-metadata
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -28,6 +29,9 @@ buildPythonPackage rec {
|
||||
|
||||
# To prevent infinite recursion with pytest
|
||||
doCheck = false;
|
||||
passthru.tests = {
|
||||
pytest = callPackage ./tests.nix { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/pytest-dev/pluggy/blob/${src.rev}/CHANGELOG.rst";
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{ buildPythonPackage
|
||||
, pluggy
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "pluggy-tests";
|
||||
inherit (pluggy) version;
|
||||
format = "other";
|
||||
|
||||
inherit (pluggy) src;
|
||||
|
||||
dontBuild = true;
|
||||
dontInstall = true;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pluggy
|
||||
pytestCheckHook
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user