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