From aaa14e7725c8f938060c18dcc9033973d1ce71e3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 5 Aug 2025 04:43:20 +0200 Subject: [PATCH 1/2] python3Packages.qt-material: 2.14 -> 2.17 This commit was automatically generated using update-python-libraries. (cherry picked from commit 7b21af5aba61994e437adf3470e2579654d3f91b) --- pkgs/development/python-modules/qt-material/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/qt-material/default.nix b/pkgs/development/python-modules/qt-material/default.nix index 2a6d64c55e22..24c279dc3e89 100644 --- a/pkgs/development/python-modules/qt-material/default.nix +++ b/pkgs/development/python-modules/qt-material/default.nix @@ -7,12 +7,12 @@ buildPythonPackage rec { pname = "qt-material"; - version = "2.14"; + version = "2.17"; format = "setuptools"; src = fetchPypi { inherit pname version; - hash = "sha256-tdu1relyF8964za7fAR8kL6zncfyBIpJjJFq1fL3riM="; + hash = "sha256-tQCgwfXvj0aozwN9GqW9+epOthgYC2MyU5373QZHrQ0="; }; propagatedBuildInputs = [ jinja2 ]; From 0408cc3ac5e67c750b7428b26c6cb783fe273108 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Mon, 18 Aug 2025 11:56:13 +0200 Subject: [PATCH 2/2] qt-material: modernize, fix - pypi as source failed to fetch, so use github fetcher - pypi links to https://github.com/dunderlab/qt-material as the package homepage - qt-material switched to a pyproject build - adjust dependencies/build-system to accomodate (cherry picked from commit db168f1f1bb05c655f93828a72417f31ea504bca) --- .../python-modules/qt-material/default.nix | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/qt-material/default.nix b/pkgs/development/python-modules/qt-material/default.nix index 24c279dc3e89..3f3bb9e07284 100644 --- a/pkgs/development/python-modules/qt-material/default.nix +++ b/pkgs/development/python-modules/qt-material/default.nix @@ -1,28 +1,34 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, jinja2, + setuptools, }: buildPythonPackage rec { pname = "qt-material"; version = "2.17"; - format = "setuptools"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-tQCgwfXvj0aozwN9GqW9+epOthgYC2MyU5373QZHrQ0="; + src = fetchFromGitHub { + owner = "dunderlab"; + repo = "qt-material"; + tag = "v${version}"; + hash = "sha256-ilrPA8SoVCo6FgwxWQ4sOjqURCFDQJLlTTkCZzTZQKI="; }; - propagatedBuildInputs = [ jinja2 ]; + build-system = [ setuptools ]; + + dependencies = [ jinja2 ]; pythonImportsCheck = [ "qt_material" ]; - meta = with lib; { + meta = { + changelog = "https://github.com/dunderlab/qt-material/releases/tag/${src.tag}"; description = "Material inspired stylesheet for PySide2, PySide6, PyQt5 and PyQt6"; - homepage = "https://github.com/UN-GCPDS/qt-material"; - license = licenses.bsd2; - maintainers = with maintainers; [ _999eagle ]; + homepage = "https://github.com/dunderlab/qt-material"; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ _999eagle ]; }; }