Merge pull request #129548 from fabaff/bump-pyroma

authored by

Sandro and committed by
GitHub
76e175c5 75c433e9

+33 -11
+33 -11
pkgs/development/python-modules/pyroma/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi 2 - , docutils, pygments, setuptools 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , docutils 5 + , pygments 6 + , setuptools 7 + , requests 8 + , pytestCheckHook 3 9 }: 4 10 5 11 buildPythonPackage rec { 6 12 pname = "pyroma"; 7 - version = "3.1"; 13 + version = "3.2"; 8 14 9 - src = fetchPypi { 10 - inherit pname version; 11 - sha256 = "45ad8201da9a813b5597bb85c80bbece93af9ec89170fc2be5ad85fa9463cef1"; 15 + src = fetchFromGitHub { 16 + owner = "regebro"; 17 + repo = pname; 18 + rev = version; 19 + sha256 = "0ln9w984n48nyxwzd1y48l6b18lnv52radcyizaw56lapcgxrzdr"; 12 20 }; 13 21 14 - postPatch = '' 15 - substituteInPlace setup.py \ 16 - --replace "pygments < 2.6" "pygments" 17 - ''; 22 + propagatedBuildInputs = [ 23 + docutils 24 + pygments 25 + setuptools 26 + requests 27 + ]; 18 28 19 - propagatedBuildInputs = [ docutils pygments setuptools ]; 29 + checkInputs = [ 30 + pytestCheckHook 31 + ]; 32 + 33 + pytestFlagsArray = [ "pyroma/tests.py" ]; 34 + 35 + disabledTests = [ 36 + # PyPI tests require network access 37 + "PyPITest" 38 + ]; 39 + 40 + pythonImportsCheck = [ "pyroma" ]; 20 41 21 42 meta = with lib; { 22 43 description = "Test your project's packaging friendliness"; 23 44 homepage = "https://github.com/regebro/pyroma"; 24 45 license = licenses.mit; 46 + maintainers = with maintainers; [ ]; 25 47 }; 26 48 }