1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "cstruct";
10 version = "5.3";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "andreax79";
15 repo = "python-cstruct";
16 rev = "refs/tags/v${version}";
17 hash = "sha256-VDJ0k3cOuHjckujf9yD1GVE+UM/Y9rjqhiq+MqGq2eM=";
18 };
19
20 pythonImportsCheck = [ "cstruct" ];
21
22 nativeCheckInputs = [ pytestCheckHook ];
23
24 meta = with lib; {
25 description = "C-style structs for Python";
26 homepage = "https://github.com/andreax79/python-cstruct";
27 changelog = "https://github.com/andreax79/python-cstruct/blob/v${version}/changelog.txt";
28 license = licenses.mit;
29 maintainers = with maintainers; [ tnias ];
30 };
31}