From e6fa5b83dca44e892ded6f6467f707c11db7e436 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 6 Nov 2022 19:45:42 +0100 Subject: [PATCH] python310Packages.qstylizer: 0.2.1 -> 0.2.2 --- .../python-modules/qstylizer/default.nix | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/qstylizer/default.nix b/pkgs/development/python-modules/qstylizer/default.nix index 768e5f7d007e..835437da0011 100644 --- a/pkgs/development/python-modules/qstylizer/default.nix +++ b/pkgs/development/python-modules/qstylizer/default.nix @@ -1,25 +1,30 @@ { lib , buildPythonPackage -, pythonOlder , fetchFromGitHub , inflection , pbr -, tinycss2 -, pytestCheckHook , pytest-mock +, pytestCheckHook +, pythonOlder +, tinycss2 }: buildPythonPackage rec { pname = "qstylizer"; - version = "0.2.1"; + version = "0.2.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "blambright"; repo = pname; rev = version; - sha256 = "sha256-iEMxBpS9gOPubd9O8zpVmR5B7+UZJFkPuOtikO1a9v0="; + hash = "sha256-QJ4xhaAoVO4/VncXKzI8Q5f/rPfctJ8CvfedkQVgZgQ="; }; + PBR_VERSION = version; + nativeBuildInputs = [ pbr ]; @@ -34,12 +39,12 @@ buildPythonPackage rec { pytest-mock ]; - preBuild = '' - export PBR_VERSION=${version} - ''; + pythonImportsCheck = [ + "qstylizer" + ]; meta = with lib; { - description = "Qt stylesheet generation utility for PyQt/PySide "; + description = "Qt stylesheet generation utility for PyQt/PySide"; homepage = "https://github.com/blambright/qstylizer"; license = licenses.mit; maintainers = with maintainers; [ drewrisinger ];