2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchFromGitHub,
|
2024-05-15 15:35:15 +00:00
|
|
|
setuptools,
|
|
|
|
tkinter,
|
|
|
|
darkdetect,
|
2024-09-19 14:19:46 +00:00
|
|
|
packaging,
|
|
|
|
typing-extensions,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
pname = "customtkinter";
|
|
|
|
version = "5.2.2";
|
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TomSchimansky";
|
|
|
|
repo = "CustomTkinter";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-1g2wdXbUv5xNnpflFLXvU39s16kmwvuegKWd91E3qm4=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
2024-05-15 15:35:15 +00:00
|
|
|
setuptools
|
2024-09-19 14:19:46 +00:00
|
|
|
tkinter
|
2024-05-15 15:35:15 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
|
|
|
darkdetect
|
|
|
|
packaging
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./0001-Add-Missing-Cfg-Packages.patch ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "customtkinter" ];
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Modern and customizable python UI-library based on Tkinter";
|
2024-05-15 15:35:15 +00:00
|
|
|
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; [ donteatoreo ];
|
|
|
|
};
|
|
|
|
}
|