1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "bitstruct";
11 version = "8.21.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "eerimoq";
16 repo = "bitstruct";
17 tag = version;
18 hash = "sha256-r2FPfSoW1Za7kglwpPXnWvWwzhAB8fQXiLPmbsi/8Ps=";
19 };
20
21 build-system = [
22 setuptools
23 ];
24
25 pythonImportsCheck = [ "bitstruct" ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 meta = with lib; {
32 description = "Python bit pack/unpack package";
33 homepage = "https://github.com/eerimoq/bitstruct";
34 license = licenses.mit;
35 maintainers = with maintainers; [ jakewaksbaum ];
36 };
37}