2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
attrs,
|
|
|
|
pillow,
|
|
|
|
toml,
|
|
|
|
numpy,
|
|
|
|
pyyaml,
|
|
|
|
python,
|
|
|
|
pytestCheckHook,
|
2021-12-19 01:06:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clickgen";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2.2.5";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ful1e5";
|
|
|
|
repo = "clickgen";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-yFEkE1VyeHBuebpsumc6CTvv2kpAw7XAWlyUlXibqz0=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
numpy
|
|
|
|
pillow
|
|
|
|
pyyaml
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2022-05-18 14:49:53 +00:00
|
|
|
# Copying scripts directory needed by clickgen script at $out/bin/
|
|
|
|
cp -R src/clickgen/scripts $out/${python.sitePackages}/clickgen/scripts
|
2021-12-19 01:06:50 +00:00
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
pythonImportsCheck = [ "clickgen" ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/ful1e5/clickgen";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Hassle-free cursor building toolbox";
|
2021-12-19 01:06:50 +00:00
|
|
|
longDescription = ''
|
|
|
|
clickgen is API for building X11 and Windows Cursors from
|
|
|
|
.png files. clickgen is using anicursorgen and xcursorgen under the hood.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ AdsonCicilioti ];
|
2022-05-18 14:49:53 +00:00
|
|
|
# fails with:
|
|
|
|
# ld: unknown option: -zdefs
|
|
|
|
broken = stdenv.isDarwin;
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
}
|