2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
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";
|
2021-02-04 18:35:13 +00:00
|
|
|
version = "4.5.0";
|
2018-10-29 16:28:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trendmicro";
|
|
|
|
repo = "tlsh";
|
2021-02-04 18:35:13 +00:00
|
|
|
rev = "f2bb7a97cfb0f9418a750ba92c182d1091e6c159";
|
|
|
|
sha256 = "1kxfhdwqjd4pjdlr1gjh2am8mxpaqmfq7rrxkjfi0mbisl1krkwb";
|
2018-10-29 16:28:47 +00:00
|
|
|
};
|
|
|
|
|
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";
|
2021-02-26 11:55:55 +00:00
|
|
|
homepage = "http://tlsh.org/";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|