From 0ce8040f6b55388b621b69a93077a0af79ea5349 Mon Sep 17 00:00:00 2001 From: "Emil \"AngryAnt\" Johansen" Date: Sat, 3 Jun 2023 19:27:26 +0200 Subject: [PATCH 1/2] python3Packages.sv-ttk: init at 2.4.5 --- .../python-modules/sv-ttk/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/sv-ttk/default.nix diff --git a/pkgs/development/python-modules/sv-ttk/default.nix b/pkgs/development/python-modules/sv-ttk/default.nix new file mode 100644 index 000000000000..d1ad6e9699d1 --- /dev/null +++ b/pkgs/development/python-modules/sv-ttk/default.nix @@ -0,0 +1,27 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: +buildPythonPackage rec { + pname = "sv-ttk"; + version = "2.4.5"; + format = "setuptools"; + + src = fetchPypi { + inherit version; + pname = "sv_ttk"; + hash = "sha256-ysRhRxrml+wmluH8F5AE7vZYXrTNUg5ZzI+26jwpOpc="; + }; + + # No tests available + doCheck = false; + pythonImportsCheck = [ "sv_ttk" ]; + + meta = with lib; { + description = "A gorgeous theme for Tkinter/ttk, based on the Sun Valley visual style"; + homepage = "https://github.com/rdbende/Sun-Valley-ttk-theme"; + changelog = "https://github.com/rdbende/Sun-Valley-ttk-theme/releases"; + license = licenses.mit; + maintainers = with maintainers; [ AngryAnt ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 77cc4ad2c095..3436773b3daa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11778,6 +11778,8 @@ self: super: with self; { svgwrite = callPackage ../development/python-modules/svgwrite { }; + sv-ttk = callPackage ../development/python-modules/sv-ttk { }; + swagger-spec-validator = callPackage ../development/python-modules/swagger-spec-validator { }; swagger-ui-bundle = callPackage ../development/python-modules/swagger-ui-bundle { }; From 2ca1c7cd54346c21cca295153467cf72ddc2d278 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 10 Jun 2023 23:26:15 +0200 Subject: [PATCH 2/2] python3Packages.sv-ttk: disable on unsupported Python releases - adjust changelog entry --- pkgs/development/python-modules/sv-ttk/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sv-ttk/default.nix b/pkgs/development/python-modules/sv-ttk/default.nix index d1ad6e9699d1..3032761032e2 100644 --- a/pkgs/development/python-modules/sv-ttk/default.nix +++ b/pkgs/development/python-modules/sv-ttk/default.nix @@ -1,12 +1,16 @@ { lib , buildPythonPackage , fetchPypi +, pythonOlder }: + buildPythonPackage rec { pname = "sv-ttk"; version = "2.4.5"; format = "setuptools"; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit version; pname = "sv_ttk"; @@ -15,12 +19,15 @@ buildPythonPackage rec { # No tests available doCheck = false; - pythonImportsCheck = [ "sv_ttk" ]; + + pythonImportsCheck = [ + "sv_ttk" + ]; meta = with lib; { description = "A gorgeous theme for Tkinter/ttk, based on the Sun Valley visual style"; homepage = "https://github.com/rdbende/Sun-Valley-ttk-theme"; - changelog = "https://github.com/rdbende/Sun-Valley-ttk-theme/releases"; + changelog = "https://github.com/rdbende/Sun-Valley-ttk-theme/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ AngryAnt ]; };