mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:24:08 +01:00
34 lines
803 B
Nix
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 ];
|
|
};
|
|
})
|