uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
53
pkgs/development/python-modules/telfhash/default.nix
Normal file
53
pkgs/development/python-modules/telfhash/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, capstone
|
||||
, packaging
|
||||
, pyelftools
|
||||
, tlsh
|
||||
, nose
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "telfhash";
|
||||
version = "0.9.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "trendmicro";
|
||||
repo = "telfhash";
|
||||
rev = "v${version}";
|
||||
sha256 = "124zajv43wx9l8rvdvmzcnbh0xpzmbn253pznpbjwvygfx16gq02";
|
||||
};
|
||||
|
||||
# The tlsh library's name is just "tlsh"
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "python-tlsh" "tlsh" \
|
||||
--replace "py-tlsh" "tlsh"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
capstone
|
||||
pyelftools
|
||||
tlsh
|
||||
packaging
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"telfhash"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Symbol hash for ELF files";
|
||||
homepage = "https://github.com/trendmicro/telfhash";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.determinatesystems.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue