2017-07-21 06:10:05 -07:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-12-30 03:21:21 -08:00
|
|
|
, nose, chai, simplejson, backports_functools_lru_cache
|
2019-02-13 23:37:10 -08:00
|
|
|
, dateutil, pytz
|
|
|
|
}:
|
2017-07-21 06:10:05 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arrow";
|
2019-10-23 23:47:24 -07:00
|
|
|
version = "0.15.2";
|
2017-07-21 06:10:05 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-23 23:47:24 -07:00
|
|
|
sha256 = "10257c5daba1a88db34afa284823382f4963feca7733b9107956bed041aff24f";
|
2017-07-21 06:10:05 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --cover-package=arrow
|
|
|
|
'';
|
|
|
|
|
2019-02-13 23:37:10 -08:00
|
|
|
checkInputs = [ nose chai simplejson pytz ];
|
2017-12-30 03:21:21 -08:00
|
|
|
propagatedBuildInputs = [ dateutil backports_functools_lru_cache ];
|
2017-07-21 06:10:05 -07:00
|
|
|
|
2018-01-03 05:33:50 -08:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "==1.2.1" ""
|
|
|
|
'';
|
|
|
|
|
2017-07-21 06:10:05 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python library for date manipulation";
|
|
|
|
license = "apache";
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|