2019-04-15 07:38:30 +01:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, monotonic
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "humanfriendly";
|
2021-03-08 12:25:05 +00:00
|
|
|
version = "9.1";
|
2019-04-15 07:38:30 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-08 12:25:05 +00:00
|
|
|
sha256 = "sha256-BmVilWY5qyH/JnbR/aC1mH6YXFNPx2cAoZvVS8uBEh0=";
|
2019-04-15 07:38:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://humanfriendly.readthedocs.io/";
|
2019-04-15 07:38:30 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ montag451 ];
|
|
|
|
};
|
|
|
|
}
|