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-02-20 09:09:14 +00:00
|
|
|
version = "2.6.1";
|
2020-04-10 20:40:18 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:14 +00:00
|
|
|
sha256 = "2527423e3a24ccd56951f3ce1b0ebbcc4fa0518c82fca882e696c78726ab9c2f";
|
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;
|
|
|
|
};
|
|
|
|
}
|