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