Merge pull request #175444 from fabaff/pynisher-import

python310Packages.pynisher: add pythonImportsCheck

Changed files
+21 -7
pkgs
development
python-modules
pynisher
+21 -7
pkgs/development/python-modules/pynisher/default.nix
···
-
{ lib, buildPythonPackage, fetchPypi, psutil, docutils }:
+
{ lib
+
, buildPythonPackage
+
, docutils
+
, fetchPypi
+
, psutil
+
, pythonOlder
+
}:
buildPythonPackage rec {
pname = "pynisher";
version = "0.6.4";
+
format = "setuptools";
+
+
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
-
sha256 = "111d91aad471375c0509a912415ff90053ef909100facf412511383af107c124";
+
hash = "sha256-ER2RqtRxN1wFCakSQV/5AFPvkJEA+s9BJRE4OvEHwSQ=";
};
-
propagatedBuildInputs = [ psutil docutils ];
+
propagatedBuildInputs = [
+
psutil
+
docutils
+
];
-
# no tests in the Pypi archive
+
# No tests in the Pypi archive
doCheck = false;
+
pythonImportsCheck = [
+
"pynisher"
+
];
+
meta = with lib; {
-
description = "The pynisher is a little module intended to limit a functions resources.";
+
description = "Module intended to limit a functions resources";
homepage = "https://github.com/sfalkner/pynisher";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
-
}
-