1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, docutils 5, python 6, pygments 7, setuptools 8, requests 9}: 10 11buildPythonPackage rec { 12 pname = "pyroma"; 13 version = "3.2"; 14 15 src = fetchFromGitHub { 16 owner = "regebro"; 17 repo = pname; 18 rev = version; 19 sha256 = "0ln9w984n48nyxwzd1y48l6b18lnv52radcyizaw56lapcgxrzdr"; 20 }; 21 22 propagatedBuildInputs = [ 23 docutils 24 pygments 25 setuptools 26 requests 27 ]; 28 29 # https://github.com/regebro/pyroma/blob/3.2/Makefile#L23 30 # PyPITest requires network access 31 checkPhase = '' 32 ${python.interpreter} -m unittest -k 'not PyPITest' pyroma.tests 33 ''; 34 35 pythonImportsCheck = [ "pyroma" ]; 36 37 meta = with lib; { 38 description = "Test your project's packaging friendliness"; 39 homepage = "https://github.com/regebro/pyroma"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ kamadorueda ]; 42 }; 43}