2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, monotonic
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "humanfriendly";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "10.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc";
|
2020-04-24 23:36:52 +00: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";
|
|
|
|
homepage = "https://humanfriendly.readthedocs.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ montag451 ];
|
|
|
|
};
|
|
|
|
}
|