1{ lib
2, fetchPypi
3, buildPythonPackage
4, flake8
5, flake8-polyfill
6, python
7}:
8
9buildPythonPackage rec {
10 pname = "pep8-naming";
11 version = "0.12.1";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "sha256-uyRVlHdX0WKqTK1V26TOApAFzRaS8omaIdUdhjDKeEE=";
16 };
17
18 propagatedBuildInputs = [
19 flake8
20 flake8-polyfill
21 ];
22
23 checkPhase = ''
24 runHook preCheck
25 ${python.interpreter} run_tests.py
26 runHook postCheck
27 '';
28
29 pythonImportsCheck = [
30 "pep8ext_naming"
31 ];
32
33 meta = with lib; {
34 homepage = "https://github.com/PyCQA/pep8-naming";
35 description = "Check PEP-8 naming conventions, plugin for flake8";
36 license = licenses.mit;
37 maintainers = with maintainers; [ eadwu ];
38 };
39}