nixpkgs/pkgs/development/python-modules/customtkinter/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

58 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
tkinter,
darkdetect,
packaging,
typing-extensions,
}:
let
pname = "customtkinter";
version = "5.2.2";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
src = fetchFromGitHub {
owner = "TomSchimansky";
repo = "CustomTkinter";
tag = "v${version}";
hash = "sha256-1g2wdXbUv5xNnpflFLXvU39s16kmwvuegKWd91E3qm4=";
};
build-system = [
setuptools
tkinter
];
dependencies = [
darkdetect
packaging
typing-extensions
];
patches = [ ./0001-Add-Missing-Cfg-Packages.patch ];
pythonImportsCheck = [ "customtkinter" ];
meta = {
description = "Modern and customizable python UI-library based on Tkinter";
homepage = "https://github.com/TomSchimansky/CustomTkinter";
license = lib.licenses.mit;
longDescription = ''
CustomTkinter is a python UI-library based on Tkinter, which provides
new, modern and fully customizable widgets. They are created and
used like normal Tkinter widgets and can also be used in combination
with normal Tkinter elements. The widgets and the window colors
either adapt to the system appearance or the manually set mode
('light', 'dark'), and all CustomTkinter widgets and windows support
HighDPI scaling (Windows, macOS). With CustomTkinter you'll get
a consistent and modern look across all desktop platforms
(Windows, macOS, Linux).
'';
maintainers = with lib.maintainers; [ FlameFlag ];
};
}