2017-11-23 15:59:42 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, darwin
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "psutil";
|
2018-05-09 15:49:37 +01:00
|
|
|
version = "5.4.5";
|
2017-11-23 15:59:42 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-05-09 15:49:37 +01:00
|
|
|
sha256 = "ebe293be36bb24b95cdefc5131635496e88b17fabbcf1e4bc9b5c01f5e489cfe";
|
2017-11-23 15:59:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|