python312Packages.camel-converter: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-20 10:56:36 +02:00
parent 8a8f283acd
commit 2ab35f2aaf

View File

@ -1,10 +1,11 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, poetry-core fetchFromGitHub,
, pydantic poetry-core,
, pytestCheckHook pydantic,
, pythonOlder pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -26,23 +27,15 @@ buildPythonPackage rec {
--replace-fail "--cov=camel_converter --cov-report term-missing --no-cov-on-fail" "" --replace-fail "--cov=camel_converter --cov-report term-missing --no-cov-on-fail" ""
''; '';
build-system = [ build-system = [ poetry-core ];
poetry-core
];
passthru.optional-dependencies = { passthru.optional-dependencies = {
pydantic = [ pydantic = [ pydantic ];
pydantic
];
}; };
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pydantic;
pytestCheckHook
] ++ passthru.optional-dependencies.pydantic;
pythonImportsCheck = [ pythonImportsCheck = [ "camel_converter" ];
"camel_converter"
];
disabledTests = [ disabledTests = [
# AttributeError: 'Test' object has no attribute 'model_dump' # AttributeError: 'Test' object has no attribute 'model_dump'