mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00

Some private repositories (such as Devpi) expose the legacy Pypi API (https://warehouse.pypa.io/api-reference/legacy.html). This commit adds a dedicated fetcher which basically queries this API to get the URL pointing to the actual file. Since Pypi still exposes this API, it has been possible to write a test that uses this legacy API. Fixes https://github.com/nix-community/poetry2nix/issues/277.
20 lines
428 B
TOML
20 lines
428 B
TOML
[tool.poetry]
|
|
name = "legacy"
|
|
version = "0.1.0"
|
|
description = "poetry2nix test"
|
|
authors = ["Your Name <you@example.com>"]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.8"
|
|
urllib3 = "1.26.2"
|
|
|
|
# This is to force to use the Pypi legacy API
|
|
[[tool.poetry.source]]
|
|
name = "legacy"
|
|
url = "https://pypi.org/simple/"
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|