blob: c2630dacc5fbf56e4794c2c64e477cd14ad9fd36 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
attrs,
pillow,
toml,
numpy,
pyyaml,
python,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "clickgen";
version = "2.2.4";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ful1e5";
repo = "clickgen";
rev = "refs/tags/v${version}";
hash = "sha256-aRQvyjkozT3tVMa5/MDV+Dc4nJoCbmzOLywK9isxGIg=";
};
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.isDarwin;
};
}
|