diff --git a/overrides/build-systems.json b/overrides/build-systems.json index 89c8668d3..7c0b77cf6 100644 --- a/overrides/build-systems.json +++ b/overrides/build-systems.json @@ -1065,8 +1065,14 @@ "setuptools" ], "arrow": [ - "flit-core", - "setuptools" + { + "buildSystem": "setuptools", + "until": "1.3.0" + }, + { + "buildSystem": "flit-core", + "from": "1.3.0" + } ], "arsenic": [ "poetry-core" diff --git a/tests/arrow/default.nix b/tests/arrow/default.nix new file mode 100644 index 000000000..e287fbd45 --- /dev/null +++ b/tests/arrow/default.nix @@ -0,0 +1,9 @@ +{ poetry2nix, runCommand }: +let + env = poetry2nix.mkPoetryEnv { + projectDir = ./.; + }; +in +runCommand "arrow-test" { } '' + ${env}/bin/python -c 'import arrow; print(arrow.__version__)' > $out +'' diff --git a/tests/arrow/poetry.lock b/tests/arrow/poetry.lock new file mode 100644 index 000000000..cfe2f5c13 --- /dev/null +++ b/tests/arrow/poetry.lock @@ -0,0 +1,61 @@ +# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. + +[[package]] +name = "arrow" +version = "1.3.0" +description = "Better dates & times for Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "arrow-1.3.0-py3-none-any.whl", hash = "sha256:c728b120ebc00eb84e01882a6f5e7927a53960aa990ce7dd2b10f39005a67f80"}, + {file = "arrow-1.3.0.tar.gz", hash = "sha256:d4540617648cb5f895730f1ad8c82a65f2dad0166f57b75f3ca54759c4d67a85"}, +] + +[package.dependencies] +python-dateutil = ">=2.7.0" +types-python-dateutil = ">=2.8.10" + +[package.extras] +doc = ["doc8", "sphinx (>=7.0.0)", "sphinx-autobuild", "sphinx-autodoc-typehints", "sphinx_rtd_theme (>=1.3.0)"] +test = ["dateparser (==1.*)", "pre-commit", "pytest", "pytest-cov", "pytest-mock", "pytz (==2021.1)", "simplejson (==3.*)"] + +[[package]] +name = "python-dateutil" +version = "2.8.2" +description = "Extensions to the standard Python datetime module" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +files = [ + {file = "python-dateutil-2.8.2.tar.gz", hash = "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"}, + {file = "python_dateutil-2.8.2-py2.py3-none-any.whl", hash = "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"}, +] + +[package.dependencies] +six = ">=1.5" + +[[package]] +name = "six" +version = "1.16.0" +description = "Python 2 and 3 compatibility utilities" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +files = [ + {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, + {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, +] + +[[package]] +name = "types-python-dateutil" +version = "2.8.19.14" +description = "Typing stubs for python-dateutil" +optional = false +python-versions = "*" +files = [ + {file = "types-python-dateutil-2.8.19.14.tar.gz", hash = "sha256:1f4f10ac98bb8b16ade9dbee3518d9ace017821d94b057a425b069f834737f4b"}, + {file = "types_python_dateutil-2.8.19.14-py3-none-any.whl", hash = "sha256:f977b8de27787639986b4e28963263fd0e5158942b3ecef91b9335c130cb1ce9"}, +] + +[metadata] +lock-version = "2.0" +python-versions = "^3.8" +content-hash = "49a3aaecb321af9e7682bc32ac3661e1fafca2d6ed1477a823da7313493d95e2" diff --git a/tests/arrow/pyproject.toml b/tests/arrow/pyproject.toml new file mode 100644 index 000000000..26cd9aa35 --- /dev/null +++ b/tests/arrow/pyproject.toml @@ -0,0 +1,13 @@ +[tool.poetry] +name = "test_arrow" +version = "0.1.0" +description = "" +authors = [] + +[tool.poetry.dependencies] +python = "^3.8" # https://github.com/arrow-py/arrow/blob/master/CHANGELOG.rst +arrow = "*" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" diff --git a/tests/default.nix b/tests/default.nix index 4b9270e3f..de2ac99b3 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -99,6 +99,7 @@ in affine = callTest ./affine { }; affine-pre-2-4 = callTest ./affine-pre-2-4 { }; cdk-nag = callTest ./cdk-nag { }; + arrow = callTest ./arrow { }; gdal = callTest ./gdal { }; gitlint-core = callTest ./gitlint-core { }; gitlint = callTest ./gitlint { };