diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-flake8/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-flake8/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-flake8/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-flake8/default.nix new file mode 100644 index 000000000000..a5ed447aceac --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-flake8/default.nix @@ -0,0 +1,28 @@ +{lib, buildPythonPackage, fetchPypi, pytest, flake8}: + +buildPythonPackage rec { + pname = "pytest-flake8"; + version = "1.0.6"; + + # 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 = "1b82bb58c88eb1db40524018d3fcfd0424575029703b4e2d8e3ee873f2b17027"; + }; + + 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; + }; +} |