pythonPackages:pytest-forked: run tests

Also update inputs to match setup.py and add dotlambda to maintainers.
This commit is contained in:
Robert Schütz 2021-01-23 16:04:39 +01:00
parent a6ce00c50c
commit 7267c7bade

View File

@ -2,7 +2,9 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools_scm , setuptools_scm
, py
, pytest , pytest
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -14,19 +16,16 @@ buildPythonPackage rec {
sha256 = "6aa9ac7e00ad1a539c41bec6d21011332de671e938c7637378ec9710204e37ca"; sha256 = "6aa9ac7e00ad1a539c41bec6d21011332de671e938c7637378ec9710204e37ca";
}; };
buildInputs = [ pytest setuptools_scm ]; nativeBuildInputs = [ setuptools_scm ];
# Do not function propagatedBuildInputs = [ py pytest ];
doCheck = false;
checkPhase = '' checkInputs = [ pytestCheckHook ];
py.test testing
'';
meta = { meta = {
description = "Run tests in isolated forked subprocesses"; description = "Run tests in isolated forked subprocesses";
homepage = "https://github.com/pytest-dev/pytest-forked"; homepage = "https://github.com/pytest-dev/pytest-forked";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
}; };
} }