Merge pull request #25549 from jluttine/add-pytest-flake8
pythonPackages.pytest-flake8: init at 0.8.1
This commit is contained in:
commit
37a48c9199
29
pkgs/development/python-modules/pytest-flake8/default.nix
Normal file
29
pkgs/development/python-modules/pytest-flake8/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{lib, buildPythonPackage, fetchPypi, pytest, flake8}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "pytest-flake8";
|
||||
version = "0.8.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 = "1za5i09gz127yraigmcl443w6149714l279rmlfxg1bl2kdsc45a";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -5131,6 +5131,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
pytest-flake8 = callPackage ../development/python-modules/pytest-flake8 { };
|
||||
|
||||
pytestflakes = buildPythonPackage rec {
|
||||
name = "pytest-flakes-${version}";
|
||||
version = "1.0.1";
|
||||
|
Loading…
Reference in New Issue
Block a user