···11+{
22+ lib,
33+ buildPythonPackage,
44+ pythonOlder,
55+ fetchPypi,
66+ setuptools,
77+ wheel,
88+ tkinter,
99+ darkdetect,
1010+}:
1111+let
1212+ pname = "customtkinter";
1313+ version = "5.2.2";
1414+in
1515+buildPythonPackage {
1616+ inherit pname version;
1717+ pyproject = true;
1818+ disabled = pythonOlder "3.7";
1919+2020+ src = fetchPypi {
2121+ inherit pname version;
2222+ hash = "sha256-/Y2zuvqWHJgu5gMNuoC0wuJYWGMHVrUTmG2xkRPY0gc=";
2323+ };
2424+2525+ nativeBuildInputs = [
2626+ setuptools
2727+ wheel
2828+ ];
2929+ buildInputs = [ tkinter ];
3030+ propagatedBuildInputs = [ darkdetect ];
3131+3232+ # No tests
3333+ doCheck = false;
3434+ pythonImportsCheck = [ "customtkinter" ];
3535+3636+ meta = {
3737+ description = "A modern and customizable python UI-library based on Tkinter";
3838+ homepage = "https://github.com/TomSchimansky/CustomTkinter";
3939+ license = lib.licenses.mit;
4040+ longDescription = ''
4141+ CustomTkinter is a python UI-library based on Tkinter, which provides
4242+ new, modern and fully customizable widgets. They are created and
4343+ used like normal Tkinter widgets and can also be used in combination
4444+ with normal Tkinter elements. The widgets and the window colors
4545+ either adapt to the system appearance or the manually set mode
4646+ ('light', 'dark'), and all CustomTkinter widgets and windows support
4747+ HighDPI scaling (Windows, macOS). With CustomTkinter you'll get
4848+ a consistent and modern look across all desktop platforms
4949+ (Windows, macOS, Linux).
5050+ '';
5151+ maintainers = with lib.maintainers; [ donteatoreo ];
5252+ };
5353+}