2024-07-17 22:44:19 +02:00
|
|
|
|
{
|
|
|
|
|
buildPythonPackage,
|
|
|
|
|
fetchPypi,
|
|
|
|
|
lib,
|
|
|
|
|
setuptools,
|
|
|
|
|
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,
|
|
|
|
|
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";
|
|
|
|
|
version = "0.11.1";
|
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
|
|
|
|
hash = "sha256-0ejtu6OlSA6w/z/+j2lDuikFGZh4r/HLBZhJAKZhggE=";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
postPatch = ''
|
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
|
--replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
description = "Parser for ‘pyproject.toml’";
|
|
|
|
|
homepage = "https://github.com/repo-helper/pyproject-parser";
|
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
|
maintainers = with lib.maintainers; [ tyberius-prime ];
|
|
|
|
|
};
|
|
|
|
|
}
|