From fe35d56b5683b14f37d86473be22a5a3d877a83d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 1 Oct 2024 21:19:41 +0200 Subject: [PATCH 1/2] python312Packages.apischema: 0.18.1 -> 0.18.3 Diff: https://github.com/wyfo/apischema/compare/refs/tags/v0.18.1...v0.18.3 --- pkgs/development/python-modules/apischema/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/apischema/default.nix b/pkgs/development/python-modules/apischema/default.nix index 632489d7cce9..c750c20ab516 100644 --- a/pkgs/development/python-modules/apischema/default.nix +++ b/pkgs/development/python-modules/apischema/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "apischema"; - version = "0.18.1"; + version = "0.18.3"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "wyfo"; repo = "apischema"; rev = "refs/tags/v${version}"; - hash = "sha256-omw6znk09r2SigPfaVrtA6dd8KeSfjaPgGfK12ty23g="; + hash = "sha256-YFJbNxCwDrJb603Bf8PDrvhVt4T53PNWOYs716c0f1I="; }; optional-dependencies = { From ebbbece626f1d0eca24a84a82e212f16c9b65190 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 1 Oct 2024 22:05:42 +0200 Subject: [PATCH 2/2] python312Packages.apischema: refactor --- .../development/python-modules/apischema/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/apischema/default.nix b/pkgs/development/python-modules/apischema/default.nix index c750c20ab516..59ba920c1577 100644 --- a/pkgs/development/python-modules/apischema/default.nix +++ b/pkgs/development/python-modules/apischema/default.nix @@ -6,12 +6,13 @@ pytest-asyncio, pytestCheckHook, pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "apischema"; version = "0.18.3"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -22,6 +23,14 @@ buildPythonPackage rec { hash = "sha256-YFJbNxCwDrJb603Bf8PDrvhVt4T53PNWOYs716c0f1I="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "setuptools==75.1.0" "setuptools" \ + --replace-fail "wheel~=0.44.0" "wheel" + ''; + + build-system = [ setuptools ]; + optional-dependencies = { graphql = [ graphql-core ]; }; @@ -36,6 +45,7 @@ buildPythonPackage rec { meta = with lib; { description = "JSON (de)serialization, GraphQL and JSON schema generation using typing"; homepage = "https://github.com/wyfo/apischema"; + changelog = "https://github.com/wyfo/apischema/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };