nixpkgs/pkgs/development/python-modules/pytest-flake8/default.nix
2020-05-11 22:13:12 +02:00

29 lines
774 B
Nix

{lib, buildPythonPackage, fetchPypi, pytest, flake8}:
buildPythonPackage rec {
pname = "pytest-flake8";
version = "1.0.5";
# although pytest is a runtime dependency, do not add it as
# propagatedBuildInputs in order to allow packages depend on another version
# of pytest more easily
checkInputs = [ pytest ];
propagatedBuildInputs = [ flake8 ];
src = fetchPypi {
inherit pname version;
sha256 = "d85efaafbdb9580791cfa8671799dd40d482fc30bd4476c1ca5efd661e751333";
};
checkPhase = ''
pytest .
'';
meta = {
description = "py.test plugin for efficiently checking PEP8 compliance";
homepage = "https://github.com/tholo/pytest-flake8";
maintainers = with lib.maintainers; [ jluttine ];
license = lib.licenses.bsd2;
};
}