1{ lib, buildPythonPackage, fetchPypi, isPy27 2, simplejson, backports_functools_lru_cache 3, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytest-cov 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "arrow"; 9 version = "0.17.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "ff08d10cda1d36c68657d6ad20d74fbea493d980f8b2d45344e00d6ed2bf6ed4"; 14 }; 15 16 propagatedBuildInputs = [ python-dateutil ] 17 ++ lib.optionals isPy27 [ backports_functools_lru_cache ]; 18 19 checkInputs = [ 20 dateparser 21 pytestCheckHook 22 pytest-cov 23 pytest-mock 24 pytz 25 simplejson 26 sphinx 27 ]; 28 29 # ParserError: Could not parse timezone expression "America/Nuuk" 30 disabledTests = [ 31 "test_parse_tz_name_zzz" 32 ]; 33 34 meta = with lib; { 35 description = "Python library for date manipulation"; 36 homepage = "https://github.com/crsmithdev/arrow"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ thoughtpolice ]; 39 }; 40}