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 ];