1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/development/python-modules/arrow/default.nix
Robert Schütz 882b692c4f python3Packages.arrow_1: merge into python3Packages.arrow
They are the same version.
2021-05-13 09:21:56 -07:00

51 lines
1,005 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, python-dateutil
, typing-extensions
, pytestCheckHook
, pytest-mock
, pytz
, simplejson
}:
buildPythonPackage rec {
pname = "arrow";
version = "1.0.3";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "399c9c8ae732270e1aa58ead835a79a40d7be8aa109c579898eb41029b5a231d";
};
postPatch = ''
# no coverage reports
sed -i "/addopts/d" tox.ini
'';
propagatedBuildInputs = [ python-dateutil ]
++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
checkInputs = [
pytestCheckHook
pytest-mock
pytz
simplejson
];
# ParserError: Could not parse timezone expression "America/Nuuk"
disabledTests = [
"test_parse_tz_name_zzz"
];
meta = with lib; {
description = "Python library for date manipulation";
homepage = "https://github.com/crsmithdev/arrow";
license = licenses.asl20;
maintainers = with maintainers; [ thoughtpolice ];
};
}