You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
804 B
29 lines
804 B
{lib, buildPythonPackage, fetchPypi, fetchpatch, pytest, flake8}: |
|
|
|
buildPythonPackage rec { |
|
name = "${pname}-${version}"; |
|
pname = "pytest-flake8"; |
|
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; |
|
sha256 = "0032l4x2i5qn7ikaaw0kjs9f4ccpas21j564spyxwmx50wnhf5p7"; |
|
}; |
|
|
|
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; |
|
}; |
|
}
|
|
|