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