From 30a9441ffaa8a3ea781a9b4e32bad3e96225db2c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 26 Jun 2025 21:17:14 +0200 Subject: [PATCH] python313Packages.dissect-qnxfs: init at 1.0 Dissect module implementing a parser for the QNX4 and QNX6 file systems https://github.com/fox-it/dissect.qnxfs --- .../python-modules/dissect-qnxfs/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/dissect-qnxfs/default.nix diff --git a/pkgs/development/python-modules/dissect-qnxfs/default.nix b/pkgs/development/python-modules/dissect-qnxfs/default.nix new file mode 100644 index 000000000000..fede97c6eef9 --- /dev/null +++ b/pkgs/development/python-modules/dissect-qnxfs/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + setuptools-scm, + setuptools, +}: + +buildPythonPackage rec { + pname = "dissect-qnxfs"; + version = "1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "fox-it"; + repo = "dissect.qnxfs"; + tag = version; + hash = "sha256-UnEwBcaBP64qIWVYWcsxxjWuiAM9yOCGWevnNonQn+8="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ + dissect-cstruct + dissect-util + ]; + + optional-dependencies = { + dev = [ + dissect-cstruct + dissect-util + ]; + }; + + pythonImportsCheck = [ "dissect.qnxfs" ]; + + meta = { + description = "Dissect module implementing a parser for the QNX4 and QNX6 file systems"; + homepage = "https://github.com/fox-it/dissect.qnxfs"; + changelog = "https://github.com/fox-it/dissect.qnxfs/releases/tag/${src.tag}"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e31c98e68a3e..3acdbeaaeaeb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3645,6 +3645,8 @@ self: super: with self; { dissect-ole = callPackage ../development/python-modules/dissect-ole { }; + dissect-qnxfs = callPackage ../development/python-modules/dissect-qnxfs { }; + dissect-regf = callPackage ../development/python-modules/dissect-regf { }; dissect-shellitem = callPackage ../development/python-modules/dissect-shellitem { };