1{ stdenv, buildPythonPackage, fetchPypi
2, nose, chai, simplejson, backports_functools_lru_cache
3, dateutil, pytz
4}:
5
6buildPythonPackage rec {
7 pname = "arrow";
8 version = "0.13.2";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "82dd5e13b733787d4eb0fef42d1ee1a99136dc1d65178f70373b3678b3181bfc";
13 };
14
15 checkPhase = ''
16 nosetests --cover-package=arrow
17 '';
18
19 checkInputs = [ nose chai simplejson pytz ];
20 propagatedBuildInputs = [ dateutil backports_functools_lru_cache ];
21
22 postPatch = ''
23 substituteInPlace setup.py --replace "==1.2.1" ""
24 '';
25
26 meta = with stdenv.lib; {
27 description = "Python library for date manipulation";
28 license = "apache";
29 maintainers = with maintainers; [ thoughtpolice ];
30 };
31}