1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/python-modules/pyroma/default.nix
Robert Schütz 3421de9e6d python3Packages.pyroma: don't pin pygments
According to setup.py, pin only ensures compatibility with Python 2.7.
2021-02-26 11:02:02 +01:00

27 lines
609 B
Nix

{ lib, buildPythonPackage, fetchPypi
, docutils, pygments, setuptools
}:
buildPythonPackage rec {
pname = "pyroma";
version = "2.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "2527423e3a24ccd56951f3ce1b0ebbcc4fa0518c82fca882e696c78726ab9c2f";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pygments < 2.6" "pygments"
'';
propagatedBuildInputs = [ docutils pygments setuptools ];
meta = with lib; {
description = "Test your project's packaging friendliness";
homepage = "https://github.com/regebro/pyroma";
license = licenses.mit;
};
}