python310Packages.pluggy: run tests

This commit is contained in:
Robert Schütz
2023-06-28 23:57:20 -07:00
parent c24313730a
commit 2a376a59a3
2 changed files with 24 additions and 0 deletions
@@ -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
];
}