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