about summary refs log tree commit diff
path: root/pkgs/development/python-modules/tlsh/default.nix
blob: 893fe0240b60fac5f24cdff754f23fa2a5db27ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, pkgs
}:

buildPythonPackage rec {
  pname = "tlsh";
  version = "3.4.5";

  src = fetchFromGitHub {
    owner = "trendmicro";
    repo = "tlsh";
    rev = "22fa9a62068b92c63f2b5a87004a7a7ceaac1930";
    sha256 = "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll";
  };

  buildInputs = [ pkgs.cmake ];

  # no test data
  doCheck = false;

  preConfigure = ''
    mkdir build
    cd build
    cmake ..
    cd ../py_ext
  '';

  meta = with stdenv.lib; {
    description = "Trend Micro Locality Sensitive Hash";
    homepage = https://github.com/trendmicro/tlsh;
    license = licenses.asl20;
    platforms = platforms.linux;
  };

}