fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
35 lines
615 B
Nix
35 lines
615 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tlsh";
|
|
version = "4.10.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trendmicro";
|
|
repo = "tlsh";
|
|
rev = version;
|
|
hash = "sha256-9Vkj7a5xU/coFyM/8i8JB0DdnbgDAEMOjmmMF8ckKuE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
# no test data
|
|
doCheck = false;
|
|
|
|
postConfigure = ''
|
|
cd ../py_ext
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Trend Micro Locality Sensitive Hash";
|
|
homepage = "https://tlsh.org/";
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|