2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 15:13:46 +00:00
nixpkgs/pkgs/development/python-modules/pynisher/default.nix
2023-08-24 22:46:44 +02:00

41 lines
805 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, psutil
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "pynisher";
version = "1.0.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hlN5uUlgmcipQqmr22rB245oEXOUe5WB9jWo7MXXViE=";
};
propagatedBuildInputs = [
psutil
typing-extensions
];
# No tests in the Pypi archive
doCheck = false;
pythonImportsCheck = [
"pynisher"
];
meta = with lib; {
description = "Module intended to limit a functions resources";
homepage = "https://github.com/automl/pynisher";
changelog = "https://github.com/automl/pynisher/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}