nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 31 lines 784 B view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, nose, chai, simplejson, backports_functools_lru_cache 3, dateutil, pytz, mock, dateparser 4}: 5 6buildPythonPackage rec { 7 pname = "arrow"; 8 version = "0.15.4"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "e1a318a4c0b787833ae46302c02488b6eeef413c6a13324b3261ad320f21ec1e"; 13 }; 14 15 checkPhase = '' 16 nosetests --cover-package=arrow 17 ''; 18 19 checkInputs = [ nose chai simplejson pytz ]; 20 propagatedBuildInputs = [ dateutil backports_functools_lru_cache mock dateparser]; 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}