2017-08-28 10:47:38 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pep8, nose }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.6";
|
2017-11-09 12:26:09 +01:00
|
|
|
pname = "cgroup-utils";
|
|
|
|
name = pname + "-" + version;
|
2017-08-28 10:47:38 +02:00
|
|
|
|
|
|
|
buildInputs = [ pep8 nose ];
|
|
|
|
# Pep8 tests fail...
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e "/argparse/d" setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "peo3";
|
|
|
|
repo = "cgroup-utils";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ck0aijzrg9xf6hjdxnynkapnyxw0y385jb0q7wyq4jf77ayfszc";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Utility tools for control groups of Linux";
|
|
|
|
maintainers = with maintainers; [ layus ];
|
2017-09-30 20:44:09 +02:00
|
|
|
platforms = platforms.linux;
|
2017-08-28 10:47:38 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|