Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 41 lines 875 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 flake8, 7 python, 8}: 9 10buildPythonPackage rec { 11 pname = "pep8-naming"; 12 version = "0.15.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "PyCQA"; 17 repo = "pep8-naming"; 18 tag = version; 19 hash = "sha256-swSaMOrgd6R4i92LodJVsquls9wp5ZFyzK0LNqwODoc="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ flake8 ]; 25 26 checkPhase = '' 27 runHook preCheck 28 ${python.interpreter} run_tests.py 29 runHook postCheck 30 ''; 31 32 pythonImportsCheck = [ "pep8ext_naming" ]; 33 34 meta = { 35 description = "Check PEP-8 naming conventions, plugin for flake8"; 36 homepage = "https://github.com/PyCQA/pep8-naming"; 37 changelog = "https://github.com/PyCQA/pep8-naming/blob/${src.tag}/CHANGELOG.rst"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ eadwu ]; 40 }; 41}