@@ -1,27 +1,44 @@
11{ stdenv
22, fetchFromGitHub
3−, python2Packages
3+, fetchpatch
4+, pythonPackages
45}:
56
6−python2Packages.buildPythonApplication rec {
7+pythonPackages.buildPythonApplication rec {
78 pname = "cpuset";
8− version = "1.5.8";
9+ version = "1.6";
910
10− propagatedBuildInputs = [ ];
11+ propagatedBuildInputs = with pythonPackages; [
12+ configparser
13+ future
14+ ];
15+
16+ # https://github.com/lpechacek/cpuset/pull/36
17+ patches = [
18+ (fetchpatch {
19+ url = "https://github.com/MawKKe/cpuset/commit/a4b6b275d0a43d2794ab9e82922d3431aeea9903.patch";
20+ sha256 = "1mi1xrql81iczl67s4dk2rm9r1mk36qhsa19wn7zgryf95krsix2";
21+ })
22+ ];
1123
1224 makeFlags = [ "prefix=$(out)" ];
1325
1426 src = fetchFromGitHub {
15− owner = "wykurz";
27+ owner = "lpechacek";
1628 repo = "cpuset";
1729 rev = "v${version}";
18− sha256 = "19fl2sn470yrnm2q508giggjwy5b6r2gd94gvwfbdlhf0r9dsbbm";
30+ sha256 = "0ig0ml2zd5542d0989872vmy7cs3qg7nxwa93k42bdkm50amhar4";
1931 };
2032
33+ checkPhase = ''
34+ cd t
35+ make
36+ '';
37+
2138 meta = with stdenv.lib; {
2239 description = "Python application that forms a wrapper around the standard Linux filesystem calls to make using the cpusets facilities in the Linux kernel easier";
23− homepage = "https://github.com/wykurz/cpuset";
40+ homepage = "https://github.com/lpechacek/cpuset";
2441 license = licenses.gpl2;
25− maintainers = with maintainers; [ wykurz ];
42+ maintainers = with maintainers; [ thiagokokada wykurz ];
2643 };
2744}