Skip to content

Commit

Permalink
telfhash: unstable-2021-01-29 -> 0.9.8 (#137305)
Browse files Browse the repository at this point in the history
* telfhash: unstable-2021-01-29 -> 0.9.8

* Update pkgs/development/python-modules/telfhash/default.nix

Co-authored-by: Sandro <[email protected]>

* Update pkgs/development/python-modules/telfhash/default.nix

Co-authored-by: Sandro <[email protected]>

* Update pkgs/development/python-modules/telfhash/default.nix

Co-authored-by: Sandro <[email protected]>

* telfhash: fix indent style

* Update pkgs/development/python-modules/telfhash/default.nix

Co-authored-by: Sandro <[email protected]>

* Update pkgs/development/python-modules/telfhash/default.nix

Co-authored-by: Sandro <[email protected]>
  • Loading branch information
armijnhemel and SuperSandro2000 authored Sep 12, 2021
1 parent 03f2cae commit d5540fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 37 deletions.
16 changes: 9 additions & 7 deletions pkgs/development/python-modules/telfhash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,34 @@
, buildPythonPackage
, fetchFromGitHub
, capstone
, packaging
, pyelftools
, tlsh
, nose
}:
buildPythonPackage {
buildPythonPackage rec {
pname = "telfhash";
version = "unstable-2021-01-29";
version = "0.9.8";

src = fetchFromGitHub {
owner = "trendmicro";
repo = "telfhash";
rev = "b5e398e59dc25a56a28861751c1fccc74ef71617";
sha256 = "jNu6qm8Q/UyJVaCqwFOPX02xAR5DwvCK3PaH6Fvmakk=";
rev = "v${version}";
sha256 = "124zajv43wx9l8rvdvmzcnbh0xpzmbn253pznpbjwvygfx16gq02";
};

patches = [ ./telfhash-new-tlsh-hash.patch ];

# The tlsh library's name is just "tlsh"
postPatch = ''
substituteInPlace requirements.txt --replace "python-tlsh" "tlsh"
substituteInPlace requirements.txt \
--replace "python-tlsh" "tlsh" \
--replace "py-tlsh" "tlsh"
'';

propagatedBuildInputs = [
capstone
pyelftools
tlsh
packaging
];

checkInputs = [
Expand Down

This file was deleted.

0 comments on commit d5540fa

Please sign in to comment.