1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, darwin
5}:
6
7buildPythonPackage rec {
8 pname = "psutil";
9 version = "5.4.7";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "5b6322b167a5ba0c5463b4d30dfd379cd4ce245a1162ebf8fc7ab5c5ffae4f3b";
14 };
15
16 # No tests in archive
17 doCheck = false;
18
19 buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.IOKit ];
20
21 meta = {
22 description = "Process and system utilization information interface for python";
23 homepage = https://github.com/giampaolo/psutil;
24 license = stdenv.lib.licenses.bsd3;
25 };
26}