18 buildPythonPackage rec {
23 disabled = pythonOlder "3.7";
25 src = fetchFromGitHub {
28 rev = "refs/tags/v${version}";
29 hash = "sha256-4fUyUqVQk/AcQL3xMnU1cQlF5yiD/N9NPAsUPuDTTNY=";
33 # function was made private in humanize
34 substituteInPlace maya/core.py \
35 --replace-fail "humanize.time.abs_timedelta" "humanize.time._abs_timedelta"
38 nativeBuildInputs = [ setuptools ];
40 propagatedBuildInputs = [
55 pythonImportsCheck = [ "maya" ];
58 # https://github.com/timofurrer/maya/issues/202
63 description = "Datetimes for Humans";
64 homepage = "https://github.com/timofurrer/maya";
65 changelog = "https://github.com/timofurrer/maya/releases/tag/v${version}";
66 license = licenses.mit;