Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 37 lines 688 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, cmake 5}: 6 7buildPythonPackage rec { 8 pname = "tlsh"; 9 version = "3.4.5"; 10 11 src = fetchFromGitHub { 12 owner = "trendmicro"; 13 repo = "tlsh"; 14 rev = "22fa9a62068b92c63f2b5a87004a7a7ceaac1930"; 15 sha256 = "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll"; 16 }; 17 18 nativeBuildInputs = [ cmake ]; 19 20 # no test data 21 doCheck = false; 22 23 preConfigure = '' 24 mkdir build 25 cd build 26 cmake .. 27 cd ../py_ext 28 ''; 29 30 meta = with stdenv.lib; { 31 description = "Trend Micro Locality Sensitive Hash"; 32 homepage = https://github.com/trendmicro/tlsh; 33 license = licenses.asl20; 34 platforms = platforms.unix; 35 }; 36 37}