depot/third_party/nixpkgs/pkgs/development/python-modules/pep8-naming/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

37 lines
688 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, flake8
, python
}:
buildPythonPackage rec {
pname = "pep8-naming";
version = "0.13.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-nzjm3Phnoft61H9f9ywN2uVEps9k6592ALezwLtZgLU=";
};
propagatedBuildInputs = [
flake8
];
checkPhase = ''
runHook preCheck
${python.interpreter} run_tests.py
runHook postCheck
'';
pythonImportsCheck = [
"pep8ext_naming"
];
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 ];
};
}