at master 875 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-cov-stub, 6 pytestCheckHook, 7 pillow, 8 numpy, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "blurhash"; 14 version = "1.1.5"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "halcy"; 19 repo = "blurhash-python"; 20 tag = "v${version}"; 21 hash = "sha256-lTPn2GTD7eQ9XkZyuttFqEvNgzcx6b7OdeMc5WOXrJs="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ 27 pytest-cov-stub 28 pytestCheckHook 29 pillow 30 numpy 31 ]; 32 33 pythonImportsCheck = [ "blurhash" ]; 34 35 meta = { 36 changelog = "https://github.com/halcy/blurhash-python/releases/tag/${src.tag}"; 37 description = "Pure-Python implementation of the blurhash algorithm"; 38 homepage = "https://github.com/halcy/blurhash-python"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ dotlambda ]; 41 }; 42}