mir,mir_2_15: Fix builds, modernise & fix VM tests (#374873)
[NixPkgs.git] / pkgs / development / python-modules / dissect-cstruct / default.nix
blobda34c5f7a8799070a8580f7cf9b9f45482b06a3e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   setuptools-scm,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "dissect-cstruct";
13   version = "4.3";
14   pyproject = true;
16   disabled = pythonOlder "3.9";
18   src = fetchFromGitHub {
19     owner = "fox-it";
20     repo = "dissect.cstruct";
21     tag = version;
22     hash = "sha256-Y6maLjugnso3cc9zyiZ/6AdrftYAAImYNBDXPJdTuWc=";
23   };
25   build-system = [
26     setuptools
27     setuptools-scm
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "dissect.cstruct" ];
34   meta = with lib; {
35     description = "Dissect module implementing a parser for C-like structures";
36     homepage = "https://github.com/fox-it/dissect.cstruct";
37     changelog = "https://github.com/fox-it/dissect.cstruct/releases/tag/${version}";
38     license = licenses.agpl3Only;
39     maintainers = with maintainers; [ fab ];
40   };