If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
41 lines
864 B
Nix
41 lines
864 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
pillow,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ttkbootstrap";
|
|
version = "1.12.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "israel-dryer";
|
|
repo = "ttkbootstrap";
|
|
tag = "v${version}";
|
|
hash = "sha256-Pkp45lB1Xeu9ZoLjKS8aSW2By/k3ID1qwMig/jdYHh4=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
pillow
|
|
];
|
|
|
|
# As far as I can tell, all tests require a display and are not normal-ish pytests
|
|
# but appear to just be python scripts that run demos of components?
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Supercharged theme extension for tkinter inspired by Bootstrap";
|
|
homepage = "https://github.com/israel-dryer/ttkbootstrap";
|
|
maintainers = with lib.maintainers; [ e1mo ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|