Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 28 lines 774 B view raw
1{lib, buildPythonPackage, fetchPypi, pytest, flake8}: 2 3buildPythonPackage rec { 4 pname = "pytest-flake8"; 5 version = "1.0.6"; 6 7 # although pytest is a runtime dependency, do not add it as 8 # propagatedBuildInputs in order to allow packages depend on another version 9 # of pytest more easily 10 checkInputs = [ pytest ]; 11 propagatedBuildInputs = [ flake8 ]; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "1b82bb58c88eb1db40524018d3fcfd0424575029703b4e2d8e3ee873f2b17027"; 16 }; 17 18 checkPhase = '' 19 pytest . 20 ''; 21 22 meta = { 23 description = "py.test plugin for efficiently checking PEP8 compliance"; 24 homepage = "https://github.com/tholo/pytest-flake8"; 25 maintainers = with lib.maintainers; [ jluttine ]; 26 license = lib.licenses.bsd2; 27 }; 28}