From 68b852f4dac0ed81f5556d7673df483cf8dd2842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 12 Sep 2023 17:31:19 -0700 Subject: [PATCH] python310Packages.python-rapidjson: 1.10 -> 1.11 Changelog: https://github.com/python-rapidjson/python-rapidjson/blob/v1.11/CHANGES.rst --- .../python-modules/python-rapidjson/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/python-rapidjson/default.nix b/pkgs/development/python-modules/python-rapidjson/default.nix index 8ac9281c31a1..3a44ee54a2f3 100644 --- a/pkgs/development/python-modules/python-rapidjson/default.nix +++ b/pkgs/development/python-modules/python-rapidjson/default.nix @@ -2,7 +2,6 @@ , buildPythonPackage , fetchFromGitHub , fetchpatch -, fetchPypi , pythonOlder , rapidjson , pytestCheckHook @@ -16,8 +15,8 @@ let src = fetchFromGitHub { owner = "Tencent"; repo = "rapidjson"; - rev = "083f359f5c36198accc2b9360ce1e32a333231d9"; - hash = "sha256-8O5KwZcvoEkpE+O0Twn2CKHjV2AYh8qnSaBofoWEBs8="; + rev = "5e17dbed34eef33af8f3e734820b5dc547a2a3aa"; + hash = "sha256-CTy42X6P6+Gz4WbJ3tCpAw3qqlJ+mU1PaWW9LGG+6nU="; }; patches = [ (fetchpatch { @@ -30,15 +29,17 @@ let cmakeFlags = old.cmakeFlags ++ [ "-DCMAKE_CTEST_ARGUMENTS=-E;valgrind_unittest" ]; }); in buildPythonPackage rec { - version = "1.10"; + version = "1.11"; pname = "python-rapidjson"; disabled = pythonOlder "3.7"; format = "setuptools"; - src = fetchPypi { - inherit pname version; - hash = "sha256-rP7L9e25HscqIKEl3n9WuML2Fh7/TGU4LI7mokhNNUA="; + src = fetchFromGitHub { + owner = "python-rapidjson"; + repo = "python-rapidjson"; + rev = "refs/tags/v${version}"; + hash = "sha256-Jnnr4MCopx2YJTqbHqSCzPBzUl0T8SqcznRGSI14d2Q="; }; setupPyBuildFlags = [ @@ -55,7 +56,7 @@ in buildPythonPackage rec { ]; meta = with lib; { - changelog = "https://github.com/python-rapidjson/python-rapidjson/blob/v${version}/CHANGES.rst"; + changelog = "https://github.com/python-rapidjson/python-rapidjson/blob/${src.rev}/CHANGES.rst"; homepage = "https://github.com/python-rapidjson/python-rapidjson"; description = "Python wrapper around rapidjson"; license = licenses.mit;