nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 56 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 dissect-cstruct, 5 dissect-util, 6 fetchFromGitHub, 7 google-crc32c, 8 python-lzo, 9 setuptools, 10 setuptools-scm, 11 zstandard, 12}: 13 14buildPythonPackage rec { 15 pname = "dissect-btrfs"; 16 version = "1.9"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "fox-it"; 21 repo = "dissect.btrfs"; 22 tag = version; 23 hash = "sha256-qOyPMDZtudrvZNlyiL16gv513zuTCd2O14Q4QwHMmoc="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 propagatedBuildInputs = [ 32 dissect-cstruct 33 dissect-util 34 ]; 35 36 optional-dependencies = { 37 full = [ 38 python-lzo 39 zstandard 40 ]; 41 gcrc32 = [ google-crc32c ]; 42 }; 43 44 # Issue with the test file handling 45 doCheck = false; 46 47 pythonImportsCheck = [ "dissect.btrfs" ]; 48 49 meta = { 50 description = "Dissect module implementing a parser for the BTRFS file system"; 51 homepage = "https://github.com/fox-it/dissect.btrfs"; 52 changelog = "https://github.com/fox-it/dissect.btrfs/releases/tag/${src.tag}"; 53 license = lib.licenses.agpl3Only; 54 maintainers = with lib.maintainers; [ fab ]; 55 }; 56}