btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ub / ubi_reader / package.nix
blob20c3782e90623f61ac059b72c3e985dcf5773422
2   fetchFromGitHub,
3   lib,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "ubi_reader";
9   version = "0.8.9";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "onekey-sec";
14     repo = "ubi_reader";
15     rev = "v${version}";
16     hash = "sha256-04HwzkonPzzWfX8VE//fMoVv5ggAS+61zx2W8VEUIy4=";
17   };
19   build-system = [ python3.pkgs.poetry-core ];
21   dependencies = [ python3.pkgs.lzallright ];
23   # There are no tests in the source
24   doCheck = false;
26   meta = {
27     description = "Python scripts capable of extracting and analyzing the contents of UBI and UBIFS images";
28     homepage = "https://github.com/onekey-sec/ubi_reader";
29     license = lib.licenses.gpl3Only;
30     maintainers = with lib.maintainers; [ vlaci ];
31   };