nixpkgs/pkgs/development/python-modules/cgroup-utils/default.nix

29 lines
648 B
Nix
Raw Normal View History

2017-08-28 08:47:38 +00:00
{ stdenv, buildPythonPackage, fetchFromGitHub, pep8, nose }:
buildPythonPackage rec {
version = "0.8";
pname = "cgroup-utils";
2017-08-28 08:47:38 +00:00
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 = "0qnbn8cnq8m14s8s1hcv25xjd55dyb6yy54l5vc7sby5xzzp11fq";
2017-08-28 08:47:38 +00:00
};
meta = with stdenv.lib; {
description = "Utility tools for control groups of Linux";
maintainers = with maintainers; [ layus ];
platforms = platforms.linux;
2017-08-28 08:47:38 +00:00
license = licenses.gpl2;
};
}