1{
2 lib,
3 buildPythonPackage,
4 dissect-cstruct,
5 dissect-util,
6 fetchFromGitHub,
7 setuptools,
8 setuptools-scm,
9}:
10
11buildPythonPackage rec {
12 pname = "dissect-cramfs";
13 version = "1.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "fox-it";
18 repo = "dissect.cramfs";
19 tag = version;
20 hash = "sha256-0BHt7v2sI9uxZFUVsTkPZHy+wC6twaHeBmgH04anmp0=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 setuptools-scm
26 ];
27
28 propagatedBuildInputs = [
29 dissect-cstruct
30 dissect-util
31 ];
32
33 # Issue with the test file handling
34 doCheck = false;
35
36 pythonImportsCheck = [ "dissect.cramfs" ];
37
38 meta = with lib; {
39 description = "Dissect module implementing a parser for the CRAMFS file system";
40 homepage = "https://github.com/fox-it/dissect.cramfs";
41 changelog = "https://github.com/fox-it/dissect.crmfs/releases/tag/${src.tag}";
42 license = licenses.agpl3Only;
43 maintainers = with maintainers; [ fab ];
44 };
45}