Skip to content

Commit

Permalink
python3Packages.cgroup-utils: nose -> pynose
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrox0 committed May 12, 2024
1 parent 147b7fa commit 4f497de
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions pkgs/development/python-modules/cgroup-utils/default.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
{ lib, buildPythonPackage, fetchFromGitHub, pep8, nose }:
{ lib, buildPythonPackage, fetchFromGitHub, pip, pep8, pynose }:

buildPythonPackage rec {
version = "0.8";
format = "setuptools";
pname = "cgroup-utils";

buildInputs = [ pep8 nose ];
buildInputs = [ pip pep8 pynose ];
# Pep8 tests fail...
doCheck = false;

postPatch = ''
sed -i -e "/argparse/d" setup.py
substituteInPlace setup.py --replace-fail \
"tests_require=['nose', 'pep8']" "tests_require=['pynose', 'pep8']"
substituteInPlace test_pep8.py --replace-fail \
'print message' 'print(message)'
'';

src = fetchFromGitHub {
owner = "peo3";
repo = "cgroup-utils";
rev = "v${version}";
sha256 = "0qnbn8cnq8m14s8s1hcv25xjd55dyb6yy54l5vc7sby5xzzp11fq";
hash = "sha256-2IVw/+/FL33YLpQU783yrZQmexGbwaCRJqEibBmyy2I=";
};

meta = with lib; {
meta = {
description = "Utility tools for control groups of Linux";
mainProgram = "cgutil";
maintainers = with maintainers; [ layus ];
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with lib.maintainers; [ layus ];
platforms = lib.platforms.linux;
license = lib.licenses.gpl2;
};
}

0 comments on commit 4f497de

Please sign in to comment.