1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, numpy 6, six 7, scipy 8, pillow 9, pywavelets 10}: 11 12buildPythonPackage rec { 13 pname = "imagehash"; 14 version = "4.3.1"; 15 16 src = fetchFromGitHub { 17 owner = "JohannesBuchner"; 18 repo = "imagehash"; 19 rev = "v${version}"; 20 hash = "sha256-Tsq10TZqnzNTuO4goKjdylN4Eqy7DNbHLjr5n3+nidM="; 21 }; 22 23 propagatedBuildInputs = [ 24 numpy 25 six 26 scipy 27 pillow 28 pywavelets 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 meta = with lib; { 34 description = "A Python Perceptual Image Hashing Module"; 35 homepage = "https://github.com/JohannesBuchner/imagehash"; 36 license = licenses.bsd2; 37 maintainers = with maintainers; [ e1mo ]; 38 }; 39}