scap-security-guide: init at 0.1.75 (#375627)
[NixPkgs.git] / pkgs / by-name / je / jefferson / package.nix
blob62e57693c53289ba263f2108f41b70d228fad1be
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "jefferson";
9   version = "0.4.5";
10   format = "pyproject";
12   src = fetchFromGitHub {
13     owner = "onekey-sec";
14     repo = pname;
15     rev = "v${version}";
16     hash = "sha256-PGtrvZ0cQvdiswn2Bk43c3LbIZqJyvNe5rnTPw/ipUM=";
17   };
19   nativeBuildInputs = with python3.pkgs; [
20     poetry-core
21   ];
23   propagatedBuildInputs = with python3.pkgs; [
24     click
25     cstruct
26     lzallright
27   ];
29   pythonImportsCheck = [
30     "jefferson"
31   ];
33   # upstream has no tests
34   doCheck = false;
36   meta = with lib; {
37     description = "JFFS2 filesystem extraction tool";
38     homepage = "https://github.com/onekey-sec/jefferson";
39     license = licenses.mit;
40     maintainers = with maintainers; [
41       tnias
42       vlaci
43     ];
44     mainProgram = "jefferson";
45   };