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
|
2017-07-21 14:10:05 +01:00
|
|
|
, dateutil }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arrow";
|
2018-01-20 10:57:05 +00:00
|
|
|
version = "0.12.1";
|
2017-07-21 14:10:05 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-20 10:57:05 +00:00
|
|
|
sha256 = "a558d3b7b6ce7ffc74206a86c147052de23d3d4ef0e17c210dd478c53575c4cd";
|
2017-07-21 14:10:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --cover-package=arrow
|
|
|
|
'';
|
|
|
|
|
2017-12-30 11:21:21 +00:00
|
|
|
checkInputs = [ nose chai simplejson ];
|
|
|
|
propagatedBuildInputs = [ dateutil backports_functools_lru_cache ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|