python310Packages.dissect-sql: init at 3.1

This commit is contained in:
Fabian Affolter 2022-10-07 22:23:54 +02:00
parent 8dd36fad30
commit e899352e76
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, dissect-cstruct
, dissect-util
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "dissect-sql";
version = "3.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fox-it";
repo = "dissect.sql";
rev = version;
hash = "sha256-uKCCwTFLQSos+L0qc1pFlF3O4FV13up0qFqDYdTZJBk=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
dissect-cstruct
dissect-util
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"dissect.sql"
];
meta = with lib; {
description = "Dissect module implementing a parsers for the SQLite database file format";
homepage = "https://github.com/fox-it/dissect.sql";
license = licenses.agpl3Only;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -2507,6 +2507,8 @@ in {
dissect-shellitem = callPackage ../development/python-modules/dissect-shellitem { };
dissect-sql = callPackage ../development/python-modules/dissect-sql { };
dissect-util = callPackage ../development/python-modules/dissect-util { };
dissect-vmfs = callPackage ../development/python-modules/dissect-vmfs { };