python3Packages.arrow: 1.2.3 -> 1.3.0

This commit is contained in:
Martin Weinelt 2023-12-02 23:59:45 +01:00
parent 9a185f72bb
commit daa99d5842
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -2,8 +2,9 @@
, buildPythonPackage
, fetchPypi
, pythonOlder
, flit-core
, python-dateutil
, typing-extensions
, types-python-dateutil
, pytestCheckHook
, pytest-mock
, pytz
@ -12,14 +13,14 @@
buildPythonPackage rec {
pname = "arrow";
version = "1.2.3";
format = "setuptools";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-OTSzDKG58pI3bZ2xWxlEYIjRLsWGKbw/DaKP1V+2M6E=";
hash = "sha256-1FQGF2SMtfiVcw8a2MgqZfLa0BZvV7dfPKVHWcTWeoU=";
};
postPatch = ''
@ -27,8 +28,14 @@ buildPythonPackage rec {
sed -i "/addopts/d" tox.ini
'';
propagatedBuildInputs = [ python-dateutil ]
++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
python-dateutil
types-python-dateutil
];
nativeCheckInputs = [
pytestCheckHook