2020-05-10 18:36:58 +00:00
|
|
|
{ stdenv, lib, buildPythonPackage, fetchPypi, isPy27
|
2017-12-30 11:21:21 +00:00
|
|
|
, nose, chai, simplejson, backports_functools_lru_cache
|
2020-05-10 18:36:58 +00:00
|
|
|
, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytestcov, pytest
|
2019-02-14 07:37:10 +00:00
|
|
|
}:
|
2017-07-21 13:10:05 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arrow";
|
2020-05-09 10:01:43 +00:00
|
|
|
version = "0.15.6";
|
2017-07-21 13:10:05 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 10:01:43 +00:00
|
|
|
sha256 = "eb5d339f00072cc297d7de252a2e75f272085d1231a3723f1026d1fa91367118";
|
2017-07-21 13:10:05 +00:00
|
|
|
};
|
|
|
|
|
2020-05-10 18:36:58 +00:00
|
|
|
propagatedBuildInputs = [ python-dateutil ]
|
|
|
|
++ lib.optionals isPy27 [ backports_functools_lru_cache ];
|
2017-07-21 13:10:05 +00:00
|
|
|
|
2020-05-10 18:36:58 +00:00
|
|
|
checkInputs = [
|
|
|
|
dateparser
|
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
pytest-mock
|
|
|
|
pytz
|
|
|
|
simplejson
|
|
|
|
sphinx
|
|
|
|
];
|
2017-07-21 13:10:05 +00:00
|
|
|
|
2020-05-10 18:36:58 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
2018-01-03 13:33:50 +00:00
|
|
|
'';
|
|
|
|
|
2020-05-10 18:36:58 +00:00
|
|
|
meta = with lib; {
|
2017-07-21 13:10:05 +00:00
|
|
|
description = "Python library for date manipulation";
|
2020-05-10 18:36:58 +00:00
|
|
|
homepage = "https://github.com/crsmithdev/arrow";
|
2020-04-22 20:40:23 +00:00
|
|
|
license = licenses.asl20;
|
2017-07-21 13:10:05 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|