Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 63 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, buildPythonPackage, fetchFromGitHub,
setuptools, pybind11,
pillow,
psutil, rich,}:
buildPythonPackage (finalAttrs: { pname = "materialyoucolor"; version = "3.0.2"; pyproject = true;
src = fetchFromGitHub { owner = "T-Dynamos"; repo = "materialyoucolor-python"; tag = "v${finalAttrs.version}"; hash = "sha256-CCpYrNp79gdnj5TYcQ7fEiLsFW/kbuZ+3/cHZF4Bv/s="; };
build-system = [ setuptools pybind11 ];
dependencies = [ pillow ];
nativeCheckInputs = [ psutil rich ];
checkPhase = '' runHook preCheck
# test script taken from .github/workflows/cibuildwheel.yml python -c "from PIL import Image; Image.new('RGB', (128, 128), (70, 120, 180)).save('test_image.jpg')" python tests/test_all.py --image test_image.jpg --quality 1 --method pillow --tonal-spot python tests/test_all.py --image test_image.jpg --quality 1 --method cpp --tonal-spot
runHook postCheck '';
pythonImportsCheck = [ "materialyoucolor" "materialyoucolor.quantize" # ext ];
meta = { description = "Material You color generation algorithms in python"; homepage = "https://github.com/T-Dynamos/materialyoucolor-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ tomasajt ]; };})