Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 56 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, buildPythonPackage, fetchPypi, setuptools, cmake, nix-update-script,
numpy, pillow,}:
buildPythonPackage rec { pname = "fast-colorthief"; version = "0.0.5"; pyproject = true;
# No tags on github src = fetchPypi { inherit pname version; hash = "sha256-yUO1vnOt2NPyldPjFMn0jbhVX8zHcKsJ2IFVugYBZa4="; };
postPatch = '' substituteInPlace CMakeLists.txt --replace-fail \ "cmake_minimum_required(VERSION 2.8.12)" \ "cmake_minimum_required(VERSION 3.10)" substituteInPlace pybind11/CMakeLists.txt --replace-fail \ "cmake_minimum_required(VERSION 3.4)" \ "cmake_minimum_required(VERSION 3.10)" '';
build-system = [ setuptools cmake ];
dependencies = [ pillow numpy ];
# return to project root to locate pyproject.toml for build preBuild = "cd ..";
pythonImportsCheck = [ "fast_colorthief" ];
passthru.updateScript = nix-update-script { };
meta = { description = "Selection of most dominant colors in image using Modified Median Cut Quantization"; homepage = "https://github.com/bedapisl/fast-colorthief"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ moraxyc ]; };}