qt-material: modernize, fix (#434692)

authored by pyrox.dev and committed by GitHub 6b1c5252 a04bd81e

+16 -10
+16 -10
pkgs/development/python-modules/qt-material/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 jinja2, 6 + setuptools, 6 7 }: 7 8 8 9 buildPythonPackage rec { 9 10 pname = "qt-material"; 10 11 version = "2.17"; 11 - format = "setuptools"; 12 + pyproject = true; 12 13 13 - src = fetchPypi { 14 - inherit pname version; 15 - hash = "sha256-tQCgwfXvj0aozwN9GqW9+epOthgYC2MyU5373QZHrQ0="; 14 + src = fetchFromGitHub { 15 + owner = "dunderlab"; 16 + repo = "qt-material"; 17 + tag = "v${version}"; 18 + hash = "sha256-ilrPA8SoVCo6FgwxWQ4sOjqURCFDQJLlTTkCZzTZQKI="; 16 19 }; 17 20 18 - propagatedBuildInputs = [ jinja2 ]; 21 + build-system = [ setuptools ]; 22 + 23 + dependencies = [ jinja2 ]; 19 24 20 25 pythonImportsCheck = [ "qt_material" ]; 21 26 22 - meta = with lib; { 27 + meta = { 28 + changelog = "https://github.com/dunderlab/qt-material/releases/tag/${src.tag}"; 23 29 description = "Material inspired stylesheet for PySide2, PySide6, PyQt5 and PyQt6"; 24 - homepage = "https://github.com/UN-GCPDS/qt-material"; 25 - license = licenses.bsd2; 26 - maintainers = with maintainers; [ _999eagle ]; 30 + homepage = "https://github.com/dunderlab/qt-material"; 31 + license = lib.licenses.bsd2; 32 + maintainers = with lib.maintainers; [ _999eagle ]; 27 33 }; 28 34 }