diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-06-14 00:22:47 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-06-13 23:13:07 -0700 |
commit | 790d2fffdfb791b5c041a5f9557896ac4e59919f (patch) | |
tree | d7f38fca8939b072155bcff7b1ab243a0848d342 /pkgs/development/python-modules/blurhash | |
parent | 39fd960ee100ffc63d53c40d65d081a3c18af3fe (diff) | |
download | nixpkgs-790d2fffdfb791b5c041a5f9557896ac4e59919f.tar nixpkgs-790d2fffdfb791b5c041a5f9557896ac4e59919f.tar.gz nixpkgs-790d2fffdfb791b5c041a5f9557896ac4e59919f.tar.bz2 nixpkgs-790d2fffdfb791b5c041a5f9557896ac4e59919f.tar.lz nixpkgs-790d2fffdfb791b5c041a5f9557896ac4e59919f.tar.xz nixpkgs-790d2fffdfb791b5c041a5f9557896ac4e59919f.tar.zst nixpkgs-790d2fffdfb791b5c041a5f9557896ac4e59919f.zip |
pythonPackages.blurhash: init at 1.1.4
Diffstat (limited to 'pkgs/development/python-modules/blurhash')
-rw-r--r-- | pkgs/development/python-modules/blurhash/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/blurhash/default.nix b/pkgs/development/python-modules/blurhash/default.nix new file mode 100644 index 00000000000..665f08f7987 --- /dev/null +++ b/pkgs/development/python-modules/blurhash/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pillow +, numpy +}: + +buildPythonPackage rec { + pname = "blurhash"; + version = "1.1.4"; + + src = fetchFromGitHub { + owner = "halcy"; + repo = "blurhash-python"; + # There are no tags: https://github.com/halcy/blurhash-python/issues/4 + rev = "22e081ef1c24da1bb5c5eaa2c1d6649724deaef8"; + sha256 = "1qq6mhydlp7q3na4kmaq3871h43wh3pyfyxr4b79bia73wjdylxf"; + }; + + postPatch = '' + sed -i '/^addopts/d' setup.cfg + ''; + + checkInputs = [ + pytestCheckHook + pillow + numpy + ]; + + pythonImportsCheck = [ "blurhash" ]; + + meta = with lib; { + description = "Pure-Python implementation of the blurhash algorithm"; + homepage = "https://github.com/halcy/blurhash-python"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} |