From edd70893c172d63b19ad3c8d5dbf7971e354f8d5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 20 Apr 2024 03:22:26 +0000 Subject: [PATCH 1/3] python312Packages.camel-converter: 3.1.1 -> 3.1.2 --- pkgs/development/python-modules/camel-converter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/camel-converter/default.nix b/pkgs/development/python-modules/camel-converter/default.nix index 65703ad76bd0..81d95afd4a74 100644 --- a/pkgs/development/python-modules/camel-converter/default.nix +++ b/pkgs/development/python-modules/camel-converter/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "camel-converter"; - version = "3.1.1"; + version = "3.1.2"; pyproject = true; disabled = pythonOlder "3.8"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "sanders41"; repo = "camel-converter"; rev = "refs/tags/v${version}"; - hash = "sha256-xrdk5Y3H8KlQaGtJYdJNHq16Qfos2p+93uIAfIl098c="; + hash = "sha256-CJbflRI3wfUmPoVuLwZDYcobESmySvnS99PdpSDhDLk="; }; postPatch = '' From 8a8f283acd7af983d3c8cd17ed86315d56b83a95 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Apr 2024 10:56:18 +0200 Subject: [PATCH 2/3] python312Packages.camel-converter: refactor --- pkgs/development/python-modules/camel-converter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/camel-converter/default.nix b/pkgs/development/python-modules/camel-converter/default.nix index 81d95afd4a74..f68dd45a8187 100644 --- a/pkgs/development/python-modules/camel-converter/default.nix +++ b/pkgs/development/python-modules/camel-converter/default.nix @@ -23,10 +23,10 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace "--cov=camel_converter --cov-report term-missing --no-cov-on-fail" "" + --replace-fail "--cov=camel_converter --cov-report term-missing --no-cov-on-fail" "" ''; - nativeBuildInputs = [ + build-system = [ poetry-core ]; From 2ab35f2aaf749d56a549f73377cdc3b140d7a228 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Apr 2024 10:56:36 +0200 Subject: [PATCH 3/3] python312Packages.camel-converter: format with nixfmt --- .../camel-converter/default.nix | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/camel-converter/default.nix b/pkgs/development/python-modules/camel-converter/default.nix index f68dd45a8187..95967d2300e4 100644 --- a/pkgs/development/python-modules/camel-converter/default.nix +++ b/pkgs/development/python-modules/camel-converter/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pydantic -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pydantic, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,23 +27,15 @@ buildPythonPackage rec { --replace-fail "--cov=camel_converter --cov-report term-missing --no-cov-on-fail" "" ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; passthru.optional-dependencies = { - pydantic = [ - pydantic - ]; + pydantic = [ pydantic ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.pydantic; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pydantic; - pythonImportsCheck = [ - "camel_converter" - ]; + pythonImportsCheck = [ "camel_converter" ]; disabledTests = [ # AttributeError: 'Test' object has no attribute 'model_dump'