Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, fetchurl, fetchPypi, setuptools, pybind11, requests, rich, pillow,}:
let test-image = fetchurl { name = "test-image.jpg"; url = "https://unsplash.com/photos/u9tAl8WR3DI/download"; hash = "sha256-shGNdgOOydgGBtl/JCbTJ0AYgl+2xWvCgHBL+bEoTaE="; };inbuildPythonPackage rec { pname = "materialyoucolor"; version = "2.0.10"; pyproject = true;
# PyPI sources contain additional vendored sources src = fetchPypi { inherit pname version; hash = "sha256-MbTUB7mk/UtUswVZsNAxP21tofnRm3VUbtZdpSZx6nY="; };
build-system = [ setuptools pybind11 ];
nativeCheckInputs = [ requests rich pillow ];
checkPhase = '' runHook preCheck python tests/test_all.py ${test-image} 1 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 ]; };}