2020-06-08 20:31:29 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pythonOlder
|
|
|
|
, flake8-polyfill
|
|
|
|
, importlib-metadata
|
|
|
|
}:
|
2019-01-22 15:22:33 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pep8-naming";
|
2020-04-16 22:05:46 +01:00
|
|
|
version = "0.10.0";
|
2019-01-22 15:22:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-04-16 22:05:46 +01:00
|
|
|
sha256 = "0fmzccbmr0jn9ynamdb9ly2ai8qs5qfk8alfgnzr3fbjvpwsbd7k";
|
2019-01-22 15:22:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flake8-polyfill
|
2020-06-08 20:31:29 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
2019-01-22 15:22:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/PyCQA/pep8-naming";
|
2019-01-22 15:22:33 +00:00
|
|
|
description = "Check PEP-8 naming conventions, plugin for flake8";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|