depot/third_party/nixpkgs/pkgs/development/python-modules/blurhash-python/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
881 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
cffi,
pillow,
pytestCheckHook,
setuptools-scm,
six,
}:
buildPythonPackage rec {
pname = "blurhash-python";
version = "1.2.2";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "woltapp";
repo = "blurhash-python";
rev = "v${version}";
hash = "sha256-Cz+PkPp1knvT3U5ofyb1PstM9kzBOkgPbx03LgOLXgw=";
};
nativeBuildInputs = [
cffi
setuptools-scm
];
propagatedBuildInputs = [
cffi
pillow
six
];
pythonImportsCheck = [ "blurhash" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Compact representation of a placeholder for an image";
homepage = "https://github.com/woltapp/blurhash-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}