mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
882b692c4f
They are the same version.
51 lines
1,005 B
Nix
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 ];
|
|
};
|
|
}
|