python312Packages.schema-salad: adjust inputs

This commit is contained in:
Fabian Affolter 2024-04-12 21:17:44 +02:00
parent 5f09b60800
commit d76c4a6d8a
1 changed files with 14 additions and 0 deletions

View File

@ -6,13 +6,18 @@
fetchFromGitHub,
importlib-resources,
mistune,
mypy,
mypy-extensions,
pytestCheckHook,
pythonRelaxDepsHook,
pythonOlder,
rdflib,
requests,
ruamel-yaml,
setuptools-scm,
types-dataclasses,
types-requests,
types-setuptools,
}:
buildPythonPackage rec {
@ -29,16 +34,25 @@ buildPythonPackage rec {
hash = "sha256-AgXqeiA4sP7KBnUpb2uMWq45G0LhJ5uLtORrOG4UuB0=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "black>=19.10b0,<23.12" "black>=19.10b0"
'';
build-system = [ setuptools-scm ];
dependencies =
[
cachecontrol
mistune
mypy
mypy-extensions
rdflib
requests
ruamel-yaml
types-dataclasses
types-requests
types-setuptools
]
++ cachecontrol.optional-dependencies.filecache
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];