mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
python312Packages.telfhash: migrate to pyproject
This commit is contained in:
parent
ea3b1344d0
commit
3fafc1a39b
@ -6,11 +6,12 @@
|
||||
packaging,
|
||||
pyelftools,
|
||||
tlsh,
|
||||
setuptools,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "telfhash";
|
||||
version = "0.9.8";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "trendmicro";
|
||||
@ -22,11 +23,14 @@ buildPythonPackage rec {
|
||||
# The tlsh library's name is just "tlsh"
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "python-tlsh" "tlsh" \
|
||||
--replace "py-tlsh" "tlsh"
|
||||
--replace-fail "python-tlsh" "tlsh" \
|
||||
--replace-fail "py-tlsh" "tlsh" \
|
||||
--replace-fail "nose>=1.3.7" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
capstone
|
||||
pyelftools
|
||||
tlsh
|
||||
|
Loading…
Reference in New Issue
Block a user