2017-07-21 14:10:05 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-12-30 11:21:21 +00:00
|
|
|
, nose, chai, simplejson, backports_functools_lru_cache
|
2019-10-25 08:19:26 +01:00
|
|
|
, dateutil, pytz, mock, dateparser
|
2019-02-14 07:37:10 +00:00
|
|
|
}:
|
2017-07-21 14:10:05 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arrow";
|
2020-03-25 00:14:07 +00:00
|
|
|
version = "0.15.5";
|
2017-07-21 14:10:05 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-25 00:14:07 +00:00
|
|
|
sha256 = "0yq2bld2bjxddmg9zg4ll80pb32rkki7xyhgnrqnkxy5w9jf942k";
|
2017-07-21 14:10:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --cover-package=arrow
|
|
|
|
'';
|
|
|
|
|
2019-02-14 07:37:10 +00:00
|
|
|
checkInputs = [ nose chai simplejson pytz ];
|
2019-10-25 08:19:26 +01:00
|
|
|
propagatedBuildInputs = [ dateutil backports_functools_lru_cache mock dateparser];
|
2017-07-21 14:10:05 +01:00
|
|
|
|
2018-01-03 13:33:50 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "==1.2.1" ""
|
|
|
|
'';
|
|
|
|
|
2017-07-21 14:10:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python library for date manipulation";
|
|
|
|
license = "apache";
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|