11 buildPythonPackage rec {
16 inherit pname version;
17 hash = "sha256-YdeEb8G58m7CFnjpkHQmkJX5ZNe72M1kbrbIxML4jcE=";
21 sed -i 's/flake8.*/flake8/' requirements.txt
22 substituteInPlace hacking/checks/python23.py \
23 --replace 'H236: class Foo(object):\n __metaclass__ = \' 'Okay: class Foo(object):\n __metaclass__ = \'
24 substituteInPlace hacking/checks/except_checks.py \
25 --replace 'H201: except:' 'Okay: except:'
28 nativeBuildInputs = [ pbr ];
30 propagatedBuildInputs = [
41 # tries to trigger flake8 and fails
42 rm hacking/tests/test_doctest.py
47 pythonImportsCheck = [ "hacking" ];
50 description = "OpenStack Hacking Guideline Enforcement";
51 homepage = "https://github.com/openstack/hacking";
52 license = licenses.asl20;
53 maintainers = teams.openstack.members;