1{ lib, buildPythonPackage, fetchFromGitHub, pep8, nose }: 2 3buildPythonPackage rec { 4 version = "0.8"; 5 pname = "cgroup-utils"; 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 = "0qnbn8cnq8m14s8s1hcv25xjd55dyb6yy54l5vc7sby5xzzp11fq"; 20 }; 21 22 meta = with lib; { 23 description = "Utility tools for control groups of Linux"; 24 maintainers = with maintainers; [ layus ]; 25 platforms = platforms.linux; 26 license = licenses.gpl2; 27 }; 28}