1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytest-asyncio
5, pytestCheckHook
6, pythonOlder
7, pyserial
8, sockio
9}:
10
11buildPythonPackage rec {
12 pname = "serialio";
13 version = "2.4.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "tiagocoutinho";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-9TRGT0wpoRRcHqnH1XzlMBh0IcVzdEcOzN7hkeYnoW4=";
23 };
24
25 propagatedBuildInputs = [
26 pyserial
27 sockio
28 ];
29
30 # Module has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "serialio"
35 ];
36
37 meta = with lib; {
38 description = "Library for concurrency agnostic serial connunication";
39 homepage = "https://github.com/tiagocoutinho/serialio";
40 license = with licenses; [ gpl3Plus ];
41 maintainers = with maintainers; [ fab ];
42 };
43}