1{ lib
2, buildPythonPackage
3, fetchPypi
4, psutil
5, pythonOlder
6, typing-extensions
7}:
8
9buildPythonPackage rec {
10 pname = "pynisher";
11 version = "1.0.5";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-usSowgCwGTATiX1dbPpScO9/FI+E567dvGZxAC+zS14=";
19 };
20
21 propagatedBuildInputs = [
22 psutil
23 typing-extensions
24 ];
25
26 # No tests in the Pypi archive
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "pynisher"
31 ];
32
33 meta = with lib; {
34 description = "Module intended to limit a functions resources";
35 homepage = "https://github.com/automl/pynisher";
36 license = licenses.mit;
37 maintainers = with maintainers; [ psyanticy ];
38 };
39}