2017-07-21 13:10:05 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-12-30 11:21:21 +00:00
|
|
|
, nose, chai, simplejson, backports_functools_lru_cache
|
2017-07-21 13:10:05 +00:00
|
|
|
, dateutil }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arrow";
|
2017-12-30 11:21:21 +00:00
|
|
|
version = "0.12.0";
|
2017-07-21 13:10:05 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 11:21:21 +00:00
|
|
|
sha256 = "a15ecfddf334316e3ac8695e48c15d1be0d6038603b33043930dcf0e675c86ee";
|
2017-07-21 13:10:05 +00: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 13:10:05 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python library for date manipulation";
|
|
|
|
license = "apache";
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|