1{ lib, buildPythonPackage, fetchPypi
2, docutils, pygments, setuptools
3}:
4
5buildPythonPackage rec {
6 pname = "pyroma";
7 version = "2.6.1";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "2527423e3a24ccd56951f3ce1b0ebbcc4fa0518c82fca882e696c78726ab9c2f";
12 };
13
14 postPatch = ''
15 substituteInPlace setup.py \
16 --replace "pygments < 2.6" "pygments"
17 '';
18
19 propagatedBuildInputs = [ docutils pygments setuptools ];
20
21 meta = with lib; {
22 description = "Test your project's packaging friendliness";
23 homepage = "https://github.com/regebro/pyroma";
24 license = licenses.mit;
25 };
26}