depot/third_party/nixpkgs/pkgs/development/python-modules/pep8-naming/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

27 lines
637 B
Nix

{ lib, fetchPypi, buildPythonPackage, pythonOlder
, flake8-polyfill
, importlib-metadata
}:
buildPythonPackage rec {
pname = "pep8-naming";
version = "0.11.1";
src = fetchPypi {
inherit pname version;
sha256 = "0937rnk3c2z1jkdmbw9hfm80p5k467q7rqhn6slfiprs4kflgpd1";
};
propagatedBuildInputs = [
flake8-polyfill
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
meta = with lib; {
homepage = "https://github.com/PyCQA/pep8-naming";
description = "Check PEP-8 naming conventions, plugin for flake8";
license = licenses.mit;
maintainers = with maintainers; [ eadwu ];
};
}