3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/humanfriendly/default.nix
2021-03-08 12:25:05 +00:00

31 lines
792 B
Nix

{ lib
, pythonOlder
, buildPythonPackage
, fetchPypi
, monotonic
}:
buildPythonPackage rec {
pname = "humanfriendly";
version = "9.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BmVilWY5qyH/JnbR/aC1mH6YXFNPx2cAoZvVS8uBEh0=";
};
propagatedBuildInputs = lib.optional (pythonOlder "3.3") monotonic;
# humanfriendly tests depends on coloredlogs which itself depends on
# humanfriendly. This lead to infinite recursion when trying to
# build this package so we have to disable the test suite :(
doCheck = false;
meta = with lib; {
description = "Human friendly output for text interfaces using Python";
homepage = "https://humanfriendly.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ montag451 ];
};
}