pythonPackage.psutil: fix disk io counters fails on Linux kernel 4.18+

This commit is contained in:
Izorkin 2019-01-01 13:36:53 +03:00
parent 290425b7a0
commit f14d6ab0f6

View File

@ -1,6 +1,6 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, fetchPypi, fetchpatch
, darwin
}:
@ -13,6 +13,14 @@ buildPythonPackage rec {
sha256 = "6e265c8f3da00b015d24b842bfeb111f856b13d24f2c57036582568dc650d6c3";
};
patches = [
(fetchpatch {
name = "disk_io_counters_fails.patch";
url = "https://github.com/giampaolo/psutil/commit/8f99f3782663959062ee868bbfdbc336307a3a4d.diff";
sha256 = "0j7wdgq8y20k27wcpmbgc1chd0vmbkxy8j0zwni1s4i7hyk64hmk";
})
];
# No tests in archive
doCheck = false;