depot/third_party/nixpkgs/pkgs/development/python-modules/pynisher/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

39 lines
710 B
Nix

{ 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;
hash = "sha256-ER2RqtRxN1wFCakSQV/5AFPvkJEA+s9BJRE4OvEHwSQ=";
};
propagatedBuildInputs = [
psutil
docutils
];
# 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/sfalkner/pynisher";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}