1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, darwin
5}:
6
7buildPythonPackage rec {
8 pname = "psutil";
9 version = "5.6.3";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "863a85c1c0a5103a12c05a35e59d336e1d665747e531256e061213e2e90f63f3";
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}