2018-10-29 17:28:47 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2019-01-05 11:54:27 +01:00
|
|
|
, cmake
|
2018-10-29 17:28:47 +01:00
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
buildPythonPackage {
|
2018-10-29 17:28:47 +01:00
|
|
|
pname = "tlsh";
|
|
|
|
version = "3.4.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trendmicro";
|
|
|
|
repo = "tlsh";
|
|
|
|
rev = "22fa9a62068b92c63f2b5a87004a7a7ceaac1930";
|
|
|
|
sha256 = "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll";
|
|
|
|
};
|
|
|
|
|
2019-01-05 11:54:27 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-10-29 17:28:47 +01:00
|
|
|
|
|
|
|
# no test data
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-09-08 21:30:03 +02:00
|
|
|
postConfigure = ''
|
2018-10-29 17:28:47 +01:00
|
|
|
cd ../py_ext
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Trend Micro Locality Sensitive Hash";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/trendmicro/tlsh";
|
2018-10-29 17:28:47 +01:00
|
|
|
license = licenses.asl20;
|
2018-11-15 23:01:53 +01:00
|
|
|
platforms = platforms.unix;
|
2018-10-29 17:28:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|