From 77694e5c27d630c68b99c3b88111d09505b093f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 8 Sep 2025 07:48:19 -0700 Subject: [PATCH] python3Packages.blurhash: 1.1.4 -> 1.1.5 Diff: https://github.com/halcy/blurhash-python/compare/22e081ef1c24da1bb5c5eaa2c1d6649724deaef8..v1.1.5 Changelog: https://github.com/halcy/blurhash-python/releases/tag/v1.1.5 --- .../python-modules/blurhash/default.nix | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/blurhash/default.nix b/pkgs/development/python-modules/blurhash/default.nix index 3397e12f57c4..17e331f77e0c 100644 --- a/pkgs/development/python-modules/blurhash/default.nix +++ b/pkgs/development/python-modules/blurhash/default.nix @@ -2,29 +2,29 @@ lib, buildPythonPackage, fetchFromGitHub, + pytest-cov-stub, pytestCheckHook, pillow, numpy, + setuptools, }: -buildPythonPackage { +buildPythonPackage rec { pname = "blurhash"; - version = "1.1.4"; - format = "setuptools"; + version = "1.1.5"; + pyproject = true; src = fetchFromGitHub { owner = "halcy"; repo = "blurhash-python"; - # There are no tags: https://github.com/halcy/blurhash-python/issues/4 - rev = "22e081ef1c24da1bb5c5eaa2c1d6649724deaef8"; - sha256 = "1qq6mhydlp7q3na4kmaq3871h43wh3pyfyxr4b79bia73wjdylxf"; + tag = "v${version}"; + hash = "sha256-lTPn2GTD7eQ9XkZyuttFqEvNgzcx6b7OdeMc5WOXrJs="; }; - postPatch = '' - sed -i '/^addopts/d' setup.cfg - ''; + build-system = [ setuptools ]; nativeCheckInputs = [ + pytest-cov-stub pytestCheckHook pillow numpy @@ -32,10 +32,11 @@ buildPythonPackage { pythonImportsCheck = [ "blurhash" ]; - meta = with lib; { + meta = { + changelog = "https://github.com/halcy/blurhash-python/releases/tag/${src.tag}"; description = "Pure-Python implementation of the blurhash algorithm"; homepage = "https://github.com/halcy/blurhash-python"; - license = licenses.mit; - maintainers = with maintainers; [ dotlambda ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; }; }