mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
0c41685c30
Builds fine on Darwin.
38 lines
688 B
Nix
38 lines
688 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tlsh";
|
|
version = "3.4.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trendmicro";
|
|
repo = "tlsh";
|
|
rev = "22fa9a62068b92c63f2b5a87004a7a7ceaac1930";
|
|
sha256 = "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
# no test data
|
|
doCheck = false;
|
|
|
|
preConfigure = ''
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
cd ../py_ext
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Trend Micro Locality Sensitive Hash";
|
|
homepage = https://github.com/trendmicro/tlsh;
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
};
|
|
|
|
}
|