python310Packages.dissect-cstruct: init at 3.2

main
Fabian Affolter 2 years ago
parent 8a5f715b05
commit 00eb66b55c
  1. 45
      pkgs/development/python-modules/dissect-cstruct/default.nix
  2. 2
      pkgs/top-level/python-packages.nix

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, setuptools-scm
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "dissect-cstruct";
version = "3.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fox-it";
repo = "dissect.cstruct";
rev = version;
hash = "sha256-iP00EcEkUWoYi+SCo/gY9LSVtCSQZ3g2wMs4Z8m+X2M=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools
setuptools-scm
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"dissect.cstruct"
];
meta = with lib; {
description = "Dissect module implementing a parser for C-like structures";
homepage = "https://github.com/fox-it/dissect.cstruct";
license = licenses.agpl3Only;
maintainers = with maintainers; [ fab ];
};
}

@ -2477,6 +2477,8 @@ in {
diskcache = callPackage ../development/python-modules/diskcache { };
dissect-cstruct = callPackage ../development/python-modules/dissect-cstruct { };
dissononce = callPackage ../development/python-modules/dissononce { };
distlib = callPackage ../development/python-modules/distlib { };

Loading…
Cancel
Save