2020-06-02 18:00:15 +00:00
|
|
|
{ stdenv, lib, buildPythonPackage, fetchPypi, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, nose, chai, simplejson, backports_functools_lru_cache
|
2020-06-15 15:56:04 +00:00
|
|
|
, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytestcov
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arrow";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.15.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "edc31dc051db12c95da9bac0271cd1027b8e36912daf6d4580af53b23e62721a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
propagatedBuildInputs = [ python-dateutil ]
|
|
|
|
++ lib.optionals isPy27 [ backports_functools_lru_cache ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
checkInputs = [
|
|
|
|
dateparser
|
2020-06-15 15:56:04 +00:00
|
|
|
pytestCheckHook
|
2020-06-02 18:00:15 +00:00
|
|
|
pytestcov
|
|
|
|
pytest-mock
|
|
|
|
pytz
|
|
|
|
simplejson
|
|
|
|
sphinx
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
# ParserError: Could not parse timezone expression "America/Nuuk"
|
|
|
|
disabledTests = [
|
|
|
|
"test_parse_tz_name_zzz"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python library for date manipulation";
|
2020-06-02 18:00:15 +00:00
|
|
|
homepage = "https://github.com/crsmithdev/arrow";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|