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