nixpkgs/pkgs/development/python-modules/pyroma/default.nix

27 lines
607 B
Nix
Raw Normal View History

{ 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
};
postPatch = ''
substituteInPlace setup.py \
--replace "pygments < 2.6" "pygments"
'';
2020-04-10 20:40:18 +01:00
propagatedBuildInputs = [ docutils pygments setuptools ];
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;
};
}