From d273fa8bb6e90fe98deb10323a909b7fcb9e5d78 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 4 Apr 2023 16:36:02 +0200 Subject: [PATCH] python3.pkgs.picobox: 2.2.0 -> 3.0.0 This brings python 3.11 support. Upstream also switched to pyproject and hatch, which still needs SETUPTOOLS_SCM_PRETEND_VERSION to be set. New release was reported in https://github.com/ikalnytskyi/picobox/issues/55 --- .../python-modules/picobox/default.nix | 26 ++++++------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/picobox/default.nix b/pkgs/development/python-modules/picobox/default.nix index de0bdb14725b2..176c86e84f079 100644 --- a/pkgs/development/python-modules/picobox/default.nix +++ b/pkgs/development/python-modules/picobox/default.nix @@ -3,15 +3,17 @@ , fetchFromGitHub , fetchpatch , flask +, hatchling +, hatch-vcs , isPy27 , pytestCheckHook -, pythonAtLeast -, setuptools-scm }: buildPythonPackage rec { pname = "picobox"; - version = "2.2.0"; + version = "3.0.0"; + + format = "pyproject"; disabled = isPy27; @@ -19,26 +21,14 @@ buildPythonPackage rec { owner = "ikalnytskyi"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-B2A8GMhBFU/mb/JiiqtP+HvpPj5FYwaYO3gQN2QI6z0="; + hash = "sha256-LQiSurL+eFRJ9iQheoo66o44BlfBtAatk8deuMFROcc="; }; - patches = [ - (fetchpatch { - # already in master, but no new release yet. - # https://github.com/ikalnytskyi/picobox/issues/55 - url = "https://github.com/ikalnytskyi/picobox/commit/1fcc4a0c26a7cd50ee3ef6694139177b5dfb2be0.patch"; - hash = "sha256-/NIEzTFlZ5wG7jHT/YdySYoxT/UhSk29Up9/VqjG/jg="; - includes = [ - "tests/test_box.py" - "tests/test_stack.py" - ]; - }) - ]; - SETUPTOOLS_SCM_PRETEND_VERSION = version; nativeBuildInputs = [ - setuptools-scm + hatchling + hatch-vcs ]; nativeCheckInputs = [