Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, dissect-cstruct 4, dissect-util 5, fetchFromGitHub 6, setuptools 7, setuptools-scm 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "dissect-extfs"; 14 version = "3.5"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "fox-it"; 21 repo = "dissect.extfs"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-JLMOW1DkLI/8+1Zx3DL0fwWKaMi8OcQMxUNE9k8zhXA="; 24 }; 25 26 SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 nativeBuildInputs = [ 29 setuptools 30 setuptools-scm 31 ]; 32 33 propagatedBuildInputs = [ 34 dissect-cstruct 35 dissect-util 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "dissect.extfs" 44 ]; 45 46 # Archive files seems to be corrupt 47 doCheck = false; 48 49 meta = with lib; { 50 description = "Dissect module implementing a parser for the ExtFS file system"; 51 homepage = "https://github.com/fox-it/dissect.extfs"; 52 changelog = "https://github.com/fox-it/dissect.extfs/releases/tag/${version}"; 53 license = licenses.agpl3Only; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}