mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-03 02:57:30 +03:00
pythonPackages.blurhash: init at 1.1.4
This commit is contained in:
parent
39fd960ee1
commit
790d2fffdf
39
pkgs/development/python-modules/blurhash/default.nix
Normal file
39
pkgs/development/python-modules/blurhash/default.nix
Normal file
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1107,6 +1107,8 @@ in {
|
|||||||
|
|
||||||
bluepy-devices = callPackage ../development/python-modules/bluepy-devices { };
|
bluepy-devices = callPackage ../development/python-modules/bluepy-devices { };
|
||||||
|
|
||||||
|
blurhash = callPackage ../development/python-modules/blurhash { };
|
||||||
|
|
||||||
bme680 = callPackage ../development/python-modules/bme680 { };
|
bme680 = callPackage ../development/python-modules/bme680 { };
|
||||||
|
|
||||||
bokeh = callPackage ../development/python-modules/bokeh { };
|
bokeh = callPackage ../development/python-modules/bokeh { };
|
||||||
|
Loading…
Reference in New Issue
Block a user