1{ stdenv, buildPythonPackage, fetchFromGitHub, pep8, nose }: 2 3buildPythonPackage rec { 4 version = "0.6"; 5 pname = "cgroup-utils"; 6 name = pname + "-" + version; 7 8 buildInputs = [ pep8 nose ]; 9 # Pep8 tests fail... 10 doCheck = false; 11 12 postPatch = '' 13 sed -i -e "/argparse/d" setup.py 14 ''; 15 16 src = fetchFromGitHub { 17 owner = "peo3"; 18 repo = "cgroup-utils"; 19 rev = "v${version}"; 20 sha256 = "1ck0aijzrg9xf6hjdxnynkapnyxw0y385jb0q7wyq4jf77ayfszc"; 21 }; 22 23 meta = with stdenv.lib; { 24 description = "Utility tools for control groups of Linux"; 25 maintainers = with maintainers; [ layus ]; 26 platforms = platforms.linux; 27 license = licenses.gpl2; 28 }; 29}