mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 04:34:46 +00:00
python312Packages.schema-salad: format with nixfmt
This commit is contained in:
parent
6986b2a65e
commit
468109d4f7
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user