2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
2017-12-30 12:21:21 +01:00
|
|
|
, nose, chai, simplejson, backports_functools_lru_cache
|
2020-06-07 15:38:16 +02:00
|
|
|
, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytestcov
|
|
|
|
, pytestCheckHook
|
2019-02-14 08:37:10 +01:00
|
|
|
}:
|
2017-07-21 15:10:05 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arrow";
|
2020-10-25 22:17:24 +01:00
|
|
|
version = "0.17.0";
|
2017-07-21 15:10:05 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 22:17:24 +01:00
|
|
|
sha256 = "ff08d10cda1d36c68657d6ad20d74fbea493d980f8b2d45344e00d6ed2bf6ed4";
|
2017-07-21 15:10:05 +02:00
|
|
|
};
|
|
|
|
|
2020-05-10 20:36:58 +02:00
|
|
|
propagatedBuildInputs = [ python-dateutil ]
|
|
|
|
++ lib.optionals isPy27 [ backports_functools_lru_cache ];
|
2017-07-21 15:10:05 +02:00
|
|
|
|
2020-05-10 20:36:58 +02:00
|
|
|
checkInputs = [
|
|
|
|
dateparser
|
2020-06-07 15:38:16 +02:00
|
|
|
pytestCheckHook
|
2020-05-10 20:36:58 +02:00
|
|
|
pytestcov
|
|
|
|
pytest-mock
|
|
|
|
pytz
|
|
|
|
simplejson
|
|
|
|
sphinx
|
|
|
|
];
|
2017-07-21 15:10:05 +02:00
|
|
|
|
2020-06-07 15:38:16 +02:00
|
|
|
# ParserError: Could not parse timezone expression "America/Nuuk"
|
|
|
|
disabledTests = [
|
|
|
|
"test_parse_tz_name_zzz"
|
|
|
|
];
|
2018-01-03 14:33:50 +01:00
|
|
|
|
2020-05-10 20:36:58 +02:00
|
|
|
meta = with lib; {
|
2017-07-21 15:10:05 +02:00
|
|
|
description = "Python library for date manipulation";
|
2020-05-10 20:36:58 +02:00
|
|
|
homepage = "https://github.com/crsmithdev/arrow";
|
2020-04-22 22:40:23 +02:00
|
|
|
license = licenses.asl20;
|
2017-07-21 15:10:05 +02:00
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|