1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
attrs,
|
|
pillow,
|
|
toml,
|
|
numpy,
|
|
pyyaml,
|
|
python,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clickgen";
|
|
version = "2.2.5";
|
|
format = "setuptools";
|
|
|
|
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 = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
# fails with:
|
|
# ld: unknown option: -zdefs
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|