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

41 lines
982 B
Nix
Raw Normal View History

{ stdenv, lib, buildPythonPackage, fetchPypi, isPy27
2017-12-30 12:21:21 +01:00
, nose, chai, simplejson, backports_functools_lru_cache
, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytestcov
, pytestCheckHook
2019-02-14 08:37:10 +01:00
}:
buildPythonPackage rec {
pname = "arrow";
version = "0.15.8";
src = fetchPypi {
inherit pname version;
sha256 = "edc31dc051db12c95da9bac0271cd1027b8e36912daf6d4580af53b23e62721a";
};
propagatedBuildInputs = [ python-dateutil ]
++ lib.optionals isPy27 [ backports_functools_lru_cache ];
checkInputs = [
dateparser
pytestCheckHook
pytestcov
pytest-mock
pytz
simplejson
sphinx
];
# ParserError: Could not parse timezone expression "America/Nuuk"
disabledTests = [
"test_parse_tz_name_zzz"
];
2018-01-03 14:33:50 +01:00
meta = with lib; {
description = "Python library for date manipulation";
homepage = "https://github.com/crsmithdev/arrow";
license = licenses.asl20;
maintainers = with maintainers; [ thoughtpolice ];
};
}