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