Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / dissect-jffs / default.nix
blob234f61e007e330c274d264627e9eeee127147809
1 { lib
2 , buildPythonPackage
3 , dissect-cstruct
4 , dissect-util
5 , fetchFromGitHub
6 , pythonOlder
7 , setuptools
8 , setuptools-scm
9 }:
11 buildPythonPackage rec {
12   pname = "dissect-jffs";
13   version = "1.1";
14   pyproject = true;
16   disabled = pythonOlder "3.9";
18   src = fetchFromGitHub {
19     owner = "fox-it";
20     repo = "dissect.jffs";
21     rev = "refs/tags/${version}";
22     hash = "sha256-jzSPR4pkvXRQ3Q/qL7Oa3mLX3hW2IhbXuuO0jTc8Gvg=";
23   };
25   nativeBuildInputs = [
26     setuptools
27     setuptools-scm
28   ];
30   propagatedBuildInputs = [
31     dissect-cstruct
32     dissect-util
33   ];
35   # Test file handling fails
36   doCheck = true;
38   pythonImportsCheck = [
39     "dissect.jffs"
40   ];
42   meta = with lib; {
43     description = "Dissect module implementing a parser for the JFFS2 file system";
44     homepage = "https://github.com/fox-it/dissect.jffs";
45     changelog = "https://github.com/fox-it/dissect.jffs/releases/tag/${version}";
46     license = licenses.agpl3Only;
47     maintainers = with maintainers; [ fab ];
48   };