From f02656d900b3a1815a0d07395612cd14c9769d1b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 7 Oct 2022 20:43:44 +0200 Subject: [PATCH] python310Packages.dissect-xfs: init at 3.1 --- .../python-modules/dissect-xfs/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/dissect-xfs/default.nix diff --git a/pkgs/development/python-modules/dissect-xfs/default.nix b/pkgs/development/python-modules/dissect-xfs/default.nix new file mode 100644 index 00000000000..97eb2ed157a --- /dev/null +++ b/pkgs/development/python-modules/dissect-xfs/default.nix @@ -0,0 +1,52 @@ +{ lib +, buildPythonPackage +, dissect-cstruct +, dissect-util +, fetchFromGitHub +, setuptools +, setuptools-scm +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "dissect-xfs"; + version = "3.1"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "fox-it"; + repo = "dissect.xfs"; + rev = version; + hash = "sha256-Tg4su78Na6IAQhi7aOY8QNs3tnYOYvdnNQV6rn8QpSE="; + }; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; + + propagatedBuildInputs = [ + dissect-cstruct + dissect-util + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "dissect.xfs" + ]; + + meta = with lib; { + description = "Dissect module implementing a parser for the XFS file system"; + homepage = "https://github.com/fox-it/dissect.xfs"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 01f900b01fa..678a5d852fa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2495,6 +2495,8 @@ in { dissect-volume = callPackage ../development/python-modules/dissect-volume { }; + dissect-xfs = callPackage ../development/python-modules/dissect-xfs { }; + dissononce = callPackage ../development/python-modules/dissononce { }; distlib = callPackage ../development/python-modules/distlib { };