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