nixpkgs/pkgs/development/python-modules/pytest-flake8/default.nix

29 lines
772 B
Nix
Raw Normal View History

{lib, buildPythonPackage, fetchPypi, pytest, flake8}:
buildPythonPackage rec {
pname = "pytest-flake8";
version = "1.0.2";
# 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
buildInputs = [ pytest ];
propagatedBuildInputs = [ flake8 ];
src = fetchPypi {
inherit pname version;
sha256 = "c740ad6aa19e3958947d2118f70bed218caf1d2097039fb7318573a2a72f89a1";
};
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;
};
}