From fb853a30fcd9c8f656b37bd6220b6608bea5f1cc Mon Sep 17 00:00:00 2001 From: jokatzke Date: Tue, 10 Feb 2026 16:43:01 +0100 Subject: [PATCH] python3Packages.pyrsistent: 0.20.0 -> 0.21.0 --- .../python-modules/pyrsistent/default.nix | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/pyrsistent/default.nix b/pkgs/development/python-modules/pyrsistent/default.nix index e06cd4431fa0..5de60c290814 100644 --- a/pkgs/development/python-modules/pyrsistent/default.nix +++ b/pkgs/development/python-modules/pyrsistent/default.nix @@ -1,33 +1,31 @@ { lib, buildPythonPackage, - fetchPypi, - isPy27, + fetchFromGitHub, setuptools, - six, + typing-extensions, pytestCheckHook, hypothesis, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyrsistent"; - version = "0.20.0"; + version = "0.21.0"; pyproject = true; - disabled = isPy27; - - src = fetchPypi { - inherit pname version; - hash = "sha256-TEj3j2KrWWxnkIYITQ3RMlSuTz1scqg//fXr3vjyZaQ="; + src = fetchFromGitHub { + owner = "tobgu"; + repo = "pyrsistent"; + tag = "v${finalAttrs.version}"; + hash = "sha256-8fLyz8ELOg5GCrBHLSl4iiCgEZ6MuFoBwNKns5AI5Ps="; }; - nativeBuildInputs = [ setuptools ]; - - propagatedBuildInputs = [ six ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook hypothesis + typing-extensions ]; pythonImportsCheck = [ "pyrsistent" ]; @@ -35,6 +33,7 @@ buildPythonPackage rec { meta = { homepage = "https://github.com/tobgu/pyrsistent/"; description = "Persistent/Functional/Immutable data structures"; + changelog = "https://github.com/tobgu/pyrsistent/blob/${finalAttrs.src.tag}/CHANGES.txt"; license = lib.licenses.mit; }; -} +})