python312Packages.reptor: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-09 09:47:36 +02:00
parent 6807b11d9d
commit 1a387379ac

View File

@ -1,33 +1,34 @@
{ lib {
, asgiref lib,
, buildPythonPackage asgiref,
, certifi buildPythonPackage,
, charset-normalizer certifi,
, cvss charset-normalizer,
, deepl cvss,
, django deepl,
, fetchFromGitHub django,
, gql fetchFromGitHub,
, idna gql,
, markdown-it-py idna,
, mdurl markdown-it-py,
, pygments mdurl,
, pytest pygments,
, pytestCheckHook pytest,
, pythonOlder pytestCheckHook,
, pythonRelaxDepsHook pythonOlder,
, pyyaml pythonRelaxDepsHook,
, reptor pyyaml,
, requests reptor,
, rich requests,
, setuptools rich,
, sqlparse setuptools,
, termcolor sqlparse,
, tomli termcolor,
, tomli-w tomli,
, tomlkit tomli-w,
, urllib3 tomlkit,
, xmltodict urllib3,
xmltodict,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -46,13 +47,9 @@ buildPythonPackage rec {
pythonRelaxDeps = true; pythonRelaxDeps = true;
build-system = [ build-system = [ setuptools ];
setuptools
];
nativeBuildInputs = [ nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDepsHook
];
dependencies = [ dependencies = [
asgiref asgiref
@ -77,12 +74,8 @@ buildPythonPackage rec {
]; ];
passthru.optional-dependencies = { passthru.optional-dependencies = {
ghostwriter = [ ghostwriter = [ gql ] ++ gql.optional-dependencies.aiohttp;
gql translate = [ deepl ];
] ++ gql.optional-dependencies.aiohttp;
translate = [
deepl
];
}; };
nativeCheckInputs = [ nativeCheckInputs = [
@ -94,9 +87,7 @@ buildPythonPackage rec {
export PATH="$PATH:$out/bin"; export PATH="$PATH:$out/bin";
''; '';
pythonImportsCheck = [ pythonImportsCheck = [ "reptor" ];
"reptor"
];
disabledTestPaths = [ disabledTestPaths = [
# Tests want to use pip install dependencies # Tests want to use pip install dependencies
@ -107,7 +98,6 @@ buildPythonPackage rec {
# Tests need network access # Tests need network access
"TestDummy" "TestDummy"
"TestIntegration" "TestIntegration"
]; ];
meta = with lib; { meta = with lib; {