diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/cgroup-utils/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/cgroup-utils/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/cgroup-utils/default.nix b/nixpkgs/pkgs/development/python-modules/cgroup-utils/default.nix new file mode 100644 index 000000000000..2c97cbd4a334 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/cgroup-utils/default.nix @@ -0,0 +1,29 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub, pep8, nose }: + +buildPythonPackage rec { + version = "0.6"; + pname = "cgroup-utils"; + name = pname + "-" + version; + + 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 ]; + platforms = platforms.linux; + license = licenses.gpl2; + }; +} |