Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 645 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, cmake 5}: 6 7buildPythonPackage { 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 postConfigure = '' 24 cd ../py_ext 25 ''; 26 27 meta = with stdenv.lib; { 28 description = "Trend Micro Locality Sensitive Hash"; 29 homepage = "https://github.com/trendmicro/tlsh"; 30 license = licenses.asl20; 31 platforms = platforms.unix; 32 }; 33 34}