forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.cgroup-utils: nose -> pynose
See NixOS#311054
- Loading branch information
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |