Files
nixpkgs/pkgs/development/python-modules/clickgen/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.3 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
attrs,
pillow,
toml,
numpy,
pyyaml,
python,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "clickgen";
version = "2.2.5";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ful1e5";
repo = "clickgen";
tag = "v${version}";
hash = "sha256-yFEkE1VyeHBuebpsumc6CTvv2kpAw7XAWlyUlXibqz0=";
};
propagatedBuildInputs = [
attrs
numpy
pillow
pyyaml
toml
];
nativeCheckInputs = [ pytestCheckHook ];
postInstall = ''
# Copying scripts directory needed by clickgen script at $out/bin/
cp -R src/clickgen/scripts $out/${python.sitePackages}/clickgen/scripts
'';
pythonImportsCheck = [ "clickgen" ];
meta = with lib; {
homepage = "https://github.com/ful1e5/clickgen";
description = "Hassle-free cursor building toolbox";
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 ];
# fails with:
# ld: unknown option: -zdefs
broken = stdenv.hostPlatform.isDarwin;
};
}