2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2020-04-10 20:40:18 +01:00
|
|
|
, docutils, pygments, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyroma";
|
2021-03-24 09:28:24 +00:00
|
|
|
version = "3.1";
|
2020-04-10 20:40:18 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:24 +00:00
|
|
|
sha256 = "45ad8201da9a813b5597bb85c80bbece93af9ec89170fc2be5ad85fa9463cef1";
|
2020-04-10 20:40:18 +01:00
|
|
|
};
|
|
|
|
|
2021-02-20 23:20:23 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pygments < 2.6" "pygments"
|
|
|
|
'';
|
|
|
|
|
2020-04-10 20:40:18 +01:00
|
|
|
propagatedBuildInputs = [ docutils pygments setuptools ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-10 20:40:18 +01:00
|
|
|
description = "Test your project's packaging friendliness";
|
|
|
|
homepage = "https://github.com/regebro/pyroma";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|