python312Packages.schema-salad: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-10 22:12:21 +02:00
parent 6986b2a65e
commit 468109d4f7
1 changed files with 30 additions and 37 deletions

View File

@ -1,17 +1,18 @@
{ lib
, black
, buildPythonPackage
, cachecontrol
, fetchFromGitHub
, importlib-resources
, mistune
, mypy-extensions
, pytestCheckHook
, pythonOlder
, rdflib
, requests
, ruamel-yaml
, setuptools-scm
{
lib,
black,
buildPythonPackage,
cachecontrol,
fetchFromGitHub,
importlib-resources,
mistune,
mypy-extensions,
pytestCheckHook,
pythonOlder,
rdflib,
requests,
ruamel-yaml,
setuptools-scm,
}:
buildPythonPackage rec {
@ -28,25 +29,21 @@ buildPythonPackage rec {
hash = "sha256-AgXqeiA4sP7KBnUpb2uMWq45G0LhJ5uLtORrOG4UuB0=";
};
build-system = [
setuptools-scm
];
build-system = [ setuptools-scm ];
dependencies = [
cachecontrol
mistune
mypy-extensions
rdflib
requests
ruamel-yaml
] ++ cachecontrol.optional-dependencies.filecache
++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
dependencies =
[
cachecontrol
mistune
mypy-extensions
rdflib
requests
ruamel-yaml
]
++ cachecontrol.optional-dependencies.filecache
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
nativeCheckInputs = [
pytestCheckHook
] ++ passthru.optional-dependencies.pycodegen;
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pycodegen;
preCheck = ''
rm tox.ini
@ -62,14 +59,10 @@ buildPythonPackage rec {
"test_bad_schemas"
];
pythonImportsCheck = [
"schema_salad"
];
pythonImportsCheck = [ "schema_salad" ];
passthru.optional-dependencies = {
pycodegen = [
black
];
pycodegen = [ black ];
};
meta = with lib; {