2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, stdenv
|
2021-12-19 01:06:50 +00:00
|
|
|
, buildPythonPackage
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
2021-12-19 01:06:50 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pillow
|
2023-02-02 18:25:31 +00:00
|
|
|
, toml
|
|
|
|
, numpy
|
2023-10-19 13:55:26 +00:00
|
|
|
, pyyaml
|
2021-12-19 01:06:50 +00:00
|
|
|
, python
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clickgen";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "2.1.9";
|
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}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-mSaltlX2eNRLJ09zN5Tim8mW8mnjPi10W4QIEpiBQvI=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
propagatedBuildInputs = [ pillow toml numpy pyyaml ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2023-02-02 18:25:31 +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";
|
|
|
|
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 ];
|
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
|
|
|
};
|
|
|
|
}
|