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