python3Packages.hacking: init at 4.1.0
This commit is contained in:
parent
9ea08f3ce2
commit
9af54f4731
2 changed files with 53 additions and 0 deletions
51
pkgs/development/python-modules/hacking/default.nix
Normal file
51
pkgs/development/python-modules/hacking/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pbr
|
||||||
|
, flake8
|
||||||
|
, stestr
|
||||||
|
, eventlet
|
||||||
|
, ddt
|
||||||
|
, testtools
|
||||||
|
, testscenarios
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "hacking";
|
||||||
|
version = "4.1.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0fg19rlcky3n1y1ri61xyjp7534yzf8r102z9dw3zqg93f4kj20m";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace requirements.txt \
|
||||||
|
--replace "flake8<3.9.0,>=3.8.0" "flake8"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pbr ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
flake8
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
ddt
|
||||||
|
stestr
|
||||||
|
testscenarios
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
stestr run
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "hacking" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "OpenStack Hacking Guideline Enforcement";
|
||||||
|
homepage = "https://github.com/openstack/hacking";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = teams.openstack.members;
|
||||||
|
};
|
||||||
|
}
|
|
@ -3273,6 +3273,8 @@ in {
|
||||||
|
|
||||||
hachoir = callPackage ../development/python-modules/hachoir { };
|
hachoir = callPackage ../development/python-modules/hachoir { };
|
||||||
|
|
||||||
|
hacking = callPackage ../development/python-modules/hacking { };
|
||||||
|
|
||||||
hdate = callPackage ../development/python-modules/hdate { };
|
hdate = callPackage ../development/python-modules/hdate { };
|
||||||
|
|
||||||
ha-ffmpeg = callPackage ../development/python-modules/ha-ffmpeg { };
|
ha-ffmpeg = callPackage ../development/python-modules/ha-ffmpeg { };
|
||||||
|
|
Loading…
Reference in a new issue