1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 cmake,
6}:
7
8buildPythonPackage rec {
9 pname = "tlsh";
10 version = "4.10.0";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "trendmicro";
15 repo = "tlsh";
16 rev = version;
17 hash = "sha256-9Vkj7a5xU/coFyM/8i8JB0DdnbgDAEMOjmmMF8ckKuE=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21
22 # no test data
23 doCheck = false;
24
25 postConfigure = ''
26 cd ../py_ext
27 '';
28
29 meta = with lib; {
30 description = "Trend Micro Locality Sensitive Hash";
31 homepage = "https://tlsh.org/";
32 license = licenses.asl20;
33 platforms = platforms.unix;
34 };
35}