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