fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
attrs,
|
|
pillow,
|
|
toml,
|
|
numpy,
|
|
pyyaml,
|
|
python,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clickgen";
|
|
version = "2.2.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ful1e5";
|
|
repo = "clickgen";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-hYorjqm/FCnff3ZTgIlicwmSLA9ZnHGDyPt1BcijBII=";
|
|
};
|
|
|
|
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 = "The 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.isDarwin;
|
|
};
|
|
}
|