librewolf: 132.0.1 -> 132.0.1-1 (#355483)
[NixPkgs.git] / pkgs / by-name / je / jefferson / package.nix
blob948de453ec18736ac44e8214a9d1cd48b15efc54
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "jefferson";
8   version = "0.4.5";
9   format = "pyproject";
11   src = fetchFromGitHub {
12     owner = "onekey-sec";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-PGtrvZ0cQvdiswn2Bk43c3LbIZqJyvNe5rnTPw/ipUM=";
16   };
18   nativeBuildInputs = with python3.pkgs; [
19     poetry-core
20   ];
22   propagatedBuildInputs = with python3.pkgs; [
23     click
24     cstruct
25     lzallright
26   ];
28   pythonImportsCheck = [
29     "jefferson"
30   ];
32   # upstream has no tests
33   doCheck = false;
35   meta = with lib; {
36     description = "JFFS2 filesystem extraction tool";
37     homepage = "https://github.com/onekey-sec/jefferson";
38     license = licenses.mit;
39     maintainers = with maintainers; [ tnias vlaci ];
40     mainProgram = "jefferson";
41   };