nixpkgs/pkgs/development/python-modules/tlsh/default.nix

35 lines
617 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, cmake
}:
2019-08-13 22:52:01 +01:00
buildPythonPackage {
pname = "tlsh";
2021-02-04 18:35:13 +00:00
version = "4.5.0";
src = fetchFromGitHub {
owner = "trendmicro";
repo = "tlsh";
2021-02-04 18:35:13 +00:00
rev = "f2bb7a97cfb0f9418a750ba92c182d1091e6c159";
sha256 = "1kxfhdwqjd4pjdlr1gjh2am8mxpaqmfq7rrxkjfi0mbisl1krkwb";
};
nativeBuildInputs = [ cmake ];
# no test data
doCheck = false;
2019-09-08 20:30:03 +01:00
postConfigure = ''
cd ../py_ext
'';
meta = with lib; {
description = "Trend Micro Locality Sensitive Hash";
homepage = "http://tlsh.org/";
license = licenses.asl20;
platforms = platforms.unix;
};
}