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

30 lines
830 B
Nix
Raw Normal View History

{lib, buildPythonPackage, fetchPypi, fetchpatch, pytest, flake8}:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pytest-flake8";
2017-11-22 06:34:10 +01:00
version = "0.9.1";
# 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;
2017-11-22 06:34:10 +01:00
sha256 = "0032l4x2i5qn7ikaaw0kjs9f4ccpas21j564spyxwmx50wnhf5p7";
};
checkPhase = ''
pytest --ignore=nix_run_setup.py .
'';
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;
};
}