1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 pytest-asyncio,
7 pytestCheckHook,
8 pyyaml,
9}:
10
11buildPythonPackage rec {
12 pname = "siobrultech-protocols";
13 version = "0.14.0";
14
15 disabled = pythonOlder "3.8";
16
17 format = "setuptools";
18
19 src = fetchFromGitHub {
20 owner = "sdwilsh";
21 repo = "siobrultech-protocols";
22 tag = "v${version}";
23 hash = "sha256-8tls2wlLA3wQ78gK4JvvhSWZS5oHRzzsKE73M4i1eyg=";
24 };
25
26 nativeCheckInputs = [
27 pytest-asyncio
28 pytestCheckHook
29 pyyaml
30 ];
31
32 pythonImportsCheck = [
33 "siobrultech_protocols.gem.api"
34 "siobrultech_protocols.gem.protocol"
35 ];
36
37 meta = with lib; {
38 description = "Sans-I/O Python client library for Brultech Devices";
39 homepage = "https://github.com/sdwilsh/siobrultech-protocols";
40 changelog = "https://github.com/sdwilsh/siobrultech-protocols/releases/tag/v${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ dotlambda ];
43 };
44}