nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 gitUpdater,
5 python3,
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "jefferson";
10 version = "0.4.6";
11 format = "pyproject";
12 disabled = python3.pkgs.pythonOlder "3.9";
13
14 src = fetchFromGitHub {
15 owner = "onekey-sec";
16 repo = "jefferson";
17 rev = "v${version}";
18 hash = "sha256-6eh4i9N3aArU8+W8K341pp9J0QYEojDiMrEc8yax4SY=";
19 };
20
21 nativeBuildInputs = with python3.pkgs; [
22 poetry-core
23 ];
24
25 propagatedBuildInputs = with python3.pkgs; [
26 click
27 cstruct
28 lzallright
29 ];
30
31 pythonImportsCheck = [
32 "jefferson"
33 ];
34
35 # upstream has no tests
36 doCheck = false;
37
38 passthru = {
39 updateScript = gitUpdater { rev-prefix = "v"; };
40 };
41
42 meta = with lib; {
43 description = "JFFS2 filesystem extraction tool";
44 homepage = "https://github.com/onekey-sec/jefferson";
45 license = licenses.mit;
46 maintainers = with maintainers; [
47 tnias
48 vlaci
49 ];
50 mainProgram = "jefferson";
51 };
52}