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