nixpkgs/pkgs/development/python-modules/cstruct/default.nix
2026-01-10 17:54:43 +01:00

34 lines
803 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "cstruct";
version = "6.2";
pyproject = true;
build-system = [ setuptools ];
src = fetchFromGitHub {
owner = "andreax79";
repo = "python-cstruct";
tag = "v${finalAttrs.version}";
hash = "sha256-jLpuvApEP8Acva/OV3ulwl4+dOy8t/cD/LFJWWnD3BM=";
};
pythonImportsCheck = [ "cstruct" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "C-style structs for Python";
homepage = "https://github.com/andreax79/python-cstruct";
changelog = "https://github.com/andreax79/python-cstruct/blob/${finalAttrs.src.tag}/changelog.txt";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tnias ];
};
})