Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 50 lines 965 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 numpy, 6 pillow, 7 pytestCheckHook, 8 pywavelets, 9 scipy, 10 setuptools, 11 six, 12}: 13 14buildPythonPackage rec { 15 pname = "imagehash"; 16 version = "4.3.2"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "JohannesBuchner"; 21 repo = "imagehash"; 22 tag = "v${version}"; 23 hash = "sha256-/kYINT26ROlB3fIcyyR79nHKg9FsJRQsXQx0Bvl14ec="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 numpy 30 scipy 31 pillow 32 pywavelets 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 six 38 ]; 39 40 pythonImportsCheck = [ "imagehash" ]; 41 42 meta = { 43 description = "Python Perceptual Image Hashing Module"; 44 homepage = "https://github.com/JohannesBuchner/imagehash"; 45 changelog = "https://github.com/JohannesBuchner/imagehash/releases/tag/v${version}"; 46 license = lib.licenses.bsd2; 47 maintainers = with lib.maintainers; [ e1mo ]; 48 mainProgram = "find_similar_images.py"; 49 }; 50}