29 lines
612 B
Nix
29 lines
612 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, darwin
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "psutil";
|
|
version = "5.4.5";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ebe293be36bb24b95cdefc5131635496e88b17fabbcf1e4bc9b5c01f5e489cfe";
|
|
};
|
|
|
|
# No tests in archive
|
|
doCheck = false;
|
|
|
|
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.IOKit ];
|
|
|
|
meta = {
|
|
description = "Process and system utilization information interface for python";
|
|
homepage = https://github.com/giampaolo/psutil;
|
|
license = stdenv.lib.licenses.bsd3;
|
|
};
|
|
}
|