Files
nixpkgs/pkgs/development/python-modules/dissect-btrfs/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
dissect-cstruct,
dissect-util,
fetchFromGitHub,
google-crc32c,
python-lzo,
setuptools,
setuptools-scm,
zstandard,
}:
buildPythonPackage rec {
pname = "dissect-btrfs";
version = "1.9";
pyproject = true;
src = fetchFromGitHub {
owner = "fox-it";
repo = "dissect.btrfs";
tag = version;
hash = "sha256-qOyPMDZtudrvZNlyiL16gv513zuTCd2O14Q4QwHMmoc=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
dissect-cstruct
dissect-util
];
optional-dependencies = {
full = [
python-lzo
zstandard
];
gcrc32 = [ google-crc32c ];
};
# Issue with the test file handling
doCheck = false;
pythonImportsCheck = [ "dissect.btrfs" ];
meta = {
description = "Dissect module implementing a parser for the BTRFS file system";
homepage = "https://github.com/fox-it/dissect.btrfs";
changelog = "https://github.com/fox-it/dissect.btrfs/releases/tag/${src.tag}";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
}