nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 dissect-cstruct,
5 fetchFromGitHub,
6 setuptools,
7 setuptools-scm,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "dissect-clfs";
13 version = "1.11";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "fox-it";
18 repo = "dissect.clfs";
19 tag = version;
20 hash = "sha256-IwiE7sikZ2Rqg8GS0DKLbV/ENcRPTm0eAS3xvVG0gLw=";
21 };
22
23 build-system = [
24 setuptools
25 setuptools-scm
26 ];
27
28 dependencies = [ dissect-cstruct ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "dissect.clfs" ];
33
34 meta = {
35 description = "Dissect module implementing a parser for the CLFS (Common Log File System) file system";
36 homepage = "https://github.com/fox-it/dissect.clfs";
37 changelog = "https://github.com/fox-it/dissect.clfs/releases/tag/${src.tag}";
38 license = lib.licenses.agpl3Only;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}