nixpkgs/pkgs/development/python-modules/arrow/default.nix

32 lines
751 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
2017-12-30 11:21:21 +00:00
, nose, chai, simplejson, backports_functools_lru_cache
2019-02-14 07:37:10 +00:00
, dateutil, pytz
}:
buildPythonPackage rec {
pname = "arrow";
2019-02-14 07:37:10 +00:00
version = "0.13.1";
src = fetchPypi {
inherit pname version;
2019-02-14 07:37:10 +00:00
sha256 = "6f54d9f016c0b7811fac9fb8c2c7fa7421d80c54dbdd75ffb12913c55db60b8a";
};
checkPhase = ''
nosetests --cover-package=arrow
'';
2019-02-14 07:37:10 +00:00
checkInputs = [ nose chai simplejson pytz ];
2017-12-30 11:21:21 +00:00
propagatedBuildInputs = [ dateutil backports_functools_lru_cache ];
2018-01-03 13:33:50 +00:00
postPatch = ''
substituteInPlace setup.py --replace "==1.2.1" ""
'';
meta = with stdenv.lib; {
description = "Python library for date manipulation";
license = "apache";
maintainers = with maintainers; [ thoughtpolice ];
};
}