2024-07-17 22:44:19 +02:00
|
|
|
|
{
|
|
|
|
|
buildPythonPackage,
|
|
|
|
|
fetchPypi,
|
|
|
|
|
lib,
|
|
|
|
|
apeye-core,
|
|
|
|
|
attrs,
|
2025-02-08 15:58:22 -08:00
|
|
|
|
click,
|
|
|
|
|
consolekit,
|
|
|
|
|
docutils,
|
2024-07-17 22:44:19 +02:00
|
|
|
|
dom-toml,
|
|
|
|
|
domdf-python-tools,
|
2025-04-05 11:35:05 +02:00
|
|
|
|
hatchling,
|
|
|
|
|
hatch-requirements-txt,
|
2024-07-17 22:44:19 +02:00
|
|
|
|
natsort,
|
|
|
|
|
packaging,
|
2025-02-08 15:58:22 -08:00
|
|
|
|
readme-renderer,
|
|
|
|
|
sdjson,
|
2024-07-17 22:44:19 +02:00
|
|
|
|
shippinglabel,
|
|
|
|
|
typing-extensions,
|
|
|
|
|
}:
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "pyproject-parser";
|
2025-04-01 07:14:34 +02:00
|
|
|
|
version = "0.13.0";
|
2024-07-17 22:44:19 +02:00
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2025-04-05 11:35:05 +02:00
|
|
|
|
pname = "pyproject_parser";
|
|
|
|
|
inherit version;
|
2025-04-01 07:14:34 +02:00
|
|
|
|
hash = "sha256-/x3bXUJsbYs4rXPNotXK8/VohSy04M+Gk0XInoyg+3Y=";
|
2024-07-17 22:44:19 +02:00
|
|
|
|
};
|
|
|
|
|
|
2025-04-05 13:30:06 +02:00
|
|
|
|
build-system = [
|
|
|
|
|
hatchling
|
|
|
|
|
hatch-requirements-txt
|
|
|
|
|
];
|
2024-07-17 22:44:19 +02:00
|
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
|
apeye-core
|
|
|
|
|
attrs
|
|
|
|
|
dom-toml
|
|
|
|
|
domdf-python-tools
|
|
|
|
|
natsort
|
|
|
|
|
packaging
|
|
|
|
|
shippinglabel
|
|
|
|
|
typing-extensions
|
|
|
|
|
];
|
2025-02-08 15:58:22 -08:00
|
|
|
|
|
|
|
|
|
optional-dependencies = {
|
|
|
|
|
all = lib.flatten (lib.attrValues (lib.filterAttrs (n: v: n != "all") optional-dependencies));
|
|
|
|
|
cli = [
|
|
|
|
|
click
|
|
|
|
|
consolekit
|
|
|
|
|
sdjson
|
|
|
|
|
];
|
|
|
|
|
readme = [
|
|
|
|
|
docutils
|
|
|
|
|
readme-renderer
|
|
|
|
|
] ++ readme-renderer.optional-dependencies.md;
|
|
|
|
|
};
|
|
|
|
|
|
2024-07-17 22:44:19 +02:00
|
|
|
|
meta = {
|
|
|
|
|
description = "Parser for ‘pyproject.toml’";
|
|
|
|
|
homepage = "https://github.com/repo-helper/pyproject-parser";
|
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
|
maintainers = with lib.maintainers; [ tyberius-prime ];
|
|
|
|
|
};
|
|
|
|
|
}
|