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