mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
32 lines
751 B
Nix
32 lines
751 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, nose, chai, simplejson, backports_functools_lru_cache
|
|
, dateutil, pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "arrow";
|
|
version = "0.15.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "10257c5daba1a88db34afa284823382f4963feca7733b9107956bed041aff24f";
|
|
};
|
|
|
|
checkPhase = ''
|
|
nosetests --cover-package=arrow
|
|
'';
|
|
|
|
checkInputs = [ nose chai simplejson pytz ];
|
|
propagatedBuildInputs = [ dateutil backports_functools_lru_cache ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "==1.2.1" ""
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Python library for date manipulation";
|
|
license = "apache";
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
};
|
|
}
|