53 lines
954 B
Nix
53 lines
954 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, dissect-cstruct
|
||
|
, dissect-util
|
||
|
, fetchFromGitHub
|
||
|
, setuptools
|
||
|
, setuptools-scm
|
||
|
, pytestCheckHook
|
||
|
, pythonOlder
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "dissect-ffs";
|
||
|
version = "3.1";
|
||
|
format = "pyproject";
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "fox-it";
|
||
|
repo = "dissect.ffs";
|
||
|
rev = version;
|
||
|
hash = "sha256-JI0i0pvOOChWCDB8rynDuf0txvPQT7z2JJ1EsE4VNLw=";
|
||
|
};
|
||
|
|
||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
setuptools
|
||
|
setuptools-scm
|
||
|
];
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
dissect-cstruct
|
||
|
dissect-util
|
||
|
];
|
||
|
|
||
|
checkInputs = [
|
||
|
pytestCheckHook
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [
|
||
|
"dissect.ffs"
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Dissect module implementing a parser for the FFS file system";
|
||
|
homepage = "https://github.com/fox-it/dissect.ffs";
|
||
|
license = licenses.agpl3Only;
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|