Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, buildPythonPackage, fetchPypi, pythonRelaxDepsHook, pillow, regex }: 2 3buildPythonPackage rec { 4 pname = "material-color-utilities-python"; 5 version = "0.1.5"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "sha256-PG8C585wWViFRHve83z3b9NijHyV+iGY2BdMJpyVH64="; 10 }; 11 12 nativeBuildInputs = [ 13 pythonRelaxDepsHook 14 ]; 15 pythonRelaxDeps = [ 16 "Pillow" 17 ]; 18 19 propagatedBuildInputs = [ 20 pillow 21 regex 22 ]; 23 24 # No tests implemented. 25 doCheck = false; 26 27 pythonImportsCheck = [ "material_color_utilities_python" ]; 28 29 meta = with lib; { 30 homepage = "https://pypi.org/project/material_color_utilities_python"; 31 description = "Python port of material_color_utilities used for Material You colors"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ foo-dogsquared ]; 34 }; 35}