Files
nixpkgs/pkgs/development/python-modules/hacking/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
915 B
Nix

{
lib,
buildPythonPackage,
ddt,
fetchPypi,
flake8,
pbr,
pythonOlder,
setuptools,
stestr,
testscenarios,
}:
buildPythonPackage rec {
pname = "hacking";
version = "7.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-ubbC5SgPfVT6gsWP4JmD9oxbb2NKw/ozn4uhalcVyrc=";
};
postPatch = ''
sed -i 's/flake8.*/flake8/' requirements.txt
'';
build-system = [
pbr
setuptools
];
dependencies = [ flake8 ];
nativeCheckInputs = [
ddt
stestr
testscenarios
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "hacking" ];
meta = with lib; {
description = "OpenStack Hacking Guideline Enforcement";
homepage = "https://github.com/openstack/hacking";
license = licenses.asl20;
teams = [ teams.openstack ];
};
}