2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
numpy,
|
|
|
|
six,
|
|
|
|
scipy,
|
|
|
|
pillow,
|
|
|
|
pywavelets,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "imagehash";
|
|
|
|
version = "4.3.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JohannesBuchner";
|
|
|
|
repo = "imagehash";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-Tsq10TZqnzNTuO4goKjdylN4Eqy7DNbHLjr5n3+nidM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
six
|
|
|
|
scipy
|
|
|
|
pillow
|
|
|
|
pywavelets
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python Perceptual Image Hashing Module";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "find_similar_images.py";
|
2023-01-20 10:41:00 +00:00
|
|
|
homepage = "https://github.com/JohannesBuchner/imagehash";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ e1mo ];
|
|
|
|
};
|
|
|
|
}
|