mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
python.pkgs.cgroup-utils: fix build
This commit is contained in:
parent
e67daebcb6
commit
5d62a4d181
27
pkgs/development/python-modules/cgroup-utils/default.nix
Normal file
27
pkgs/development/python-modules/cgroup-utils/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pep8, nose }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "0.6";
|
||||||
|
name = "cgroup-utils-${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 ];
|
||||||
|
license = licenses.gpl2;
|
||||||
|
};
|
||||||
|
}
|
@ -1656,28 +1656,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cgroup-utils = buildPythonPackage rec {
|
cgroup-utils = callPackage ../development/python-modules/cgroup-utils {};
|
||||||
version = "0.6";
|
|
||||||
name = "cgroup-utils-${version}";
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ argparse ];
|
|
||||||
buildInputs = with self; [ pep8 nose ];
|
|
||||||
# Pep8 tests fail...
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "peo3";
|
|
||||||
repo = "cgroup-utils";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "1ck0aijzrg9xf6hjdxnynkapnyxw0y385jb0q7wyq4jf77ayfszc";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Utility tools for control groups of Linux";
|
|
||||||
maintainers = with maintainers; [ layus ];
|
|
||||||
license = licenses.gpl2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
channels = callPackage ../development/python-modules/channels {};
|
channels = callPackage ../development/python-modules/channels {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user