nixpkgs/pkgs/tools/security/trueseeing/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
988 B
Nix
Raw Normal View History

2022-05-05 12:27:25 +00:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "trueseeing";
2022-09-10 12:33:46 +00:00
version = "2.1.5";
2022-05-05 12:27:25 +00:00
format = "flit";
src = fetchFromGitHub {
owner = "alterakey";
repo = pname;
rev = "v${version}";
2022-09-10 12:33:46 +00:00
hash = "sha256-7iQOQ81k2bPBber4ewyvDy82s26j4P3Vv8MzSs04KAw=";
2022-05-05 12:27:25 +00:00
};
nativeBuildInputs = with python3.pkgs; [
flit-core
];
propagatedBuildInputs = with python3.pkgs; [
attrs
ipython
jinja2
lxml
pypubsub
pyyaml
2022-09-10 12:33:46 +00:00
docker
2022-05-05 12:27:25 +00:00
];
2022-09-10 12:33:46 +00:00
postPatch = ''
substituteInPlace pyproject.toml \
2022-11-07 13:36:58 +00:00
--replace "attrs~=21.4" "attrs>=21.4" \
--replace "docker~=5.0.3" "docker"
2022-09-10 12:33:46 +00:00
'';
2022-05-05 12:27:25 +00:00
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"trueseeing"
];
meta = with lib; {
description = "Non-decompiling Android vulnerability scanner";
homepage = "https://github.com/alterakey/trueseeing";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}