python312Packages.schema-salad: format with nixfmt
This commit is contained in:
parent
6986b2a65e
commit
468109d4f7
|
@ -1,17 +1,18 @@
|
||||||
{ lib
|
{
|
||||||
, black
|
lib,
|
||||||
, buildPythonPackage
|
black,
|
||||||
, cachecontrol
|
buildPythonPackage,
|
||||||
, fetchFromGitHub
|
cachecontrol,
|
||||||
, importlib-resources
|
fetchFromGitHub,
|
||||||
, mistune
|
importlib-resources,
|
||||||
, mypy-extensions
|
mistune,
|
||||||
, pytestCheckHook
|
mypy-extensions,
|
||||||
, pythonOlder
|
pytestCheckHook,
|
||||||
, rdflib
|
pythonOlder,
|
||||||
, requests
|
rdflib,
|
||||||
, ruamel-yaml
|
requests,
|
||||||
, setuptools-scm
|
ruamel-yaml,
|
||||||
|
setuptools-scm,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -28,25 +29,21 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-AgXqeiA4sP7KBnUpb2uMWq45G0LhJ5uLtORrOG4UuB0=";
|
hash = "sha256-AgXqeiA4sP7KBnUpb2uMWq45G0LhJ5uLtORrOG4UuB0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [
|
build-system = [ setuptools-scm ];
|
||||||
setuptools-scm
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies =
|
||||||
cachecontrol
|
[
|
||||||
mistune
|
cachecontrol
|
||||||
mypy-extensions
|
mistune
|
||||||
rdflib
|
mypy-extensions
|
||||||
requests
|
rdflib
|
||||||
ruamel-yaml
|
requests
|
||||||
] ++ cachecontrol.optional-dependencies.filecache
|
ruamel-yaml
|
||||||
++ lib.optionals (pythonOlder "3.9") [
|
]
|
||||||
importlib-resources
|
++ cachecontrol.optional-dependencies.filecache
|
||||||
];
|
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pycodegen;
|
||||||
pytestCheckHook
|
|
||||||
] ++ passthru.optional-dependencies.pycodegen;
|
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
rm tox.ini
|
rm tox.ini
|
||||||
|
@ -62,14 +59,10 @@ buildPythonPackage rec {
|
||||||
"test_bad_schemas"
|
"test_bad_schemas"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "schema_salad" ];
|
||||||
"schema_salad"
|
|
||||||
];
|
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
passthru.optional-dependencies = {
|
||||||
pycodegen = [
|
pycodegen = [ black ];
|
||||||
black
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user