diff options
Diffstat (limited to 'pkgs/development/python-modules/imagehash/default.nix')
-rw-r--r-- | pkgs/development/python-modules/imagehash/default.nix | 48 |
1 files changed, 30 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/imagehash/default.nix b/pkgs/development/python-modules/imagehash/default.nix index 55ce39e8648a..c53243e48f00 100644 --- a/pkgs/development/python-modules/imagehash/default.nix +++ b/pkgs/development/python-modules/imagehash/default.nix @@ -1,41 +1,53 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, numpy -, six -, scipy -, pillow -, pywavelets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pillow, + pytestCheckHook, + pythonOlder, + pywavelets, + scipy, + setuptools, + six, }: buildPythonPackage rec { pname = "imagehash"; - version = "4.3.1"; - format = "setuptools"; + version = "4.3.2"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "JohannesBuchner"; repo = "imagehash"; - rev = "v${version}"; - hash = "sha256-Tsq10TZqnzNTuO4goKjdylN4Eqy7DNbHLjr5n3+nidM="; + rev = "refs/tags/v${version}"; + hash = "sha256-/kYINT26ROlB3fIcyyR79nHKg9FsJRQsXQx0Bvl14ec="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ numpy - six scipy pillow pywavelets ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + six + ]; + + pythonImportsCheck = [ "imagehash" ]; meta = with lib; { - description = "A Python Perceptual Image Hashing Module"; - mainProgram = "find_similar_images.py"; + description = "Python Perceptual Image Hashing Module"; homepage = "https://github.com/JohannesBuchner/imagehash"; + changelog = "https://github.com/JohannesBuchner/imagehash/releases/tag/v${version}"; license = licenses.bsd2; maintainers = with maintainers; [ e1mo ]; + mainProgram = "find_similar_images.py"; }; } |