Diff: https://github.com/PyCQA/pep8-naming/compare/0.13.1...0.13.3 Changelog: https://github.com/PyCQA/pep8-naming/blob/0.13.3/CHANGELOG.rst
45 lines
887 B
Nix
45 lines
887 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flake8
|
|
, python
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pep8-naming";
|
|
version = "0.13.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyCQA";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-l7zZUOMWyTxnTbkFkzfABY/eVMKnv0kNJ0UPzJo0W1Y=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
flake8
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} run_tests.py
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"pep8ext_naming"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Check PEP-8 naming conventions, plugin for flake8";
|
|
homepage = "https://github.com/PyCQA/pep8-naming";
|
|
changelog = "https://github.com/PyCQA/pep8-naming/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ eadwu ];
|
|
};
|
|
}
|