mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 21:43:32 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pillow
|
|
, toml
|
|
, numpy
|
|
, python
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clickgen";
|
|
version = "2.1.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ful1e5";
|
|
repo = "clickgen";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-qDaSfIeKCbyl3C2iKz9DYQc1oNwTe5xDlGg/yYhakSw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pillow toml numpy ];
|
|
|
|
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;
|
|
};
|
|
}
|