at 23.05-pre 30 lines 849 B view raw
1{ lib, stdenv, fetchFromGitHub, python3, pkg-config, imagemagick, wafHook }: 2 3stdenv.mkDerivation rec { 4 pname = "blockhash"; 5 version = "0.3.2"; 6 7 src = fetchFromGitHub { 8 owner = "commonsmachinery"; 9 repo = "blockhash"; 10 rev = "v${version}"; 11 sha256 = "0x3lvhnkb4c3pyq6p81qnnqimz35wpippiac506dgjx3b1848v35"; 12 }; 13 14 nativeBuildInputs = [ python3 pkg-config wafHook ]; 15 buildInputs = [ imagemagick ]; 16 17 strictDeps = true; 18 19 meta = with lib; { 20 homepage = "https://github.com/commonsmachinery/blockhash"; 21 description = '' 22 This is a perceptual image hash calculation tool based on algorithm 23 descibed in Block Mean Value Based Image Perceptual Hashing by Bian Yang, 24 Fan Gu and Xiamu Niu. 25 ''; 26 license = licenses.mit; 27 maintainers = [ maintainers.infinisil ]; 28 platforms = platforms.unix; 29 }; 30}