python.pkgs.psutil: move to separate expression

This commit is contained in:
Frederik Rietdijk
2017-11-23 16:59:42 +01:00
parent 59d82d8895
commit 543136e863
2 changed files with 34 additions and 24 deletions

View File

@@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, darwin
, mock
}:
buildPythonPackage rec {
pname = "psutil";
version = "4.3.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6";
};
# 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;
};
}