1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyserial-asyncio-fast,
6 pytestCheckHook,
7 pythonOlder,
8 pytz,
9 poetry-core,
10}:
11
12buildPythonPackage rec {
13 pname = "upb-lib";
14 version = "0.5.6";
15 pyproject = true;
16
17 disabled = pythonOlder "3.11";
18
19 src = fetchFromGitHub {
20 owner = "gwww";
21 repo = "upb-lib";
22 rev = "refs/tags/${version}";
23 hash = "sha256-e8LYywKA5lNZ4UYFZTwcfePDWB4cTNz38Tiy4xzOxOs=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 pyserial-asyncio-fast
30 pytz
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "upb_lib" ];
36
37 disabledTests = [
38 # AssertionError
39 "test_create_control_word_all"
40 ];
41
42 meta = with lib; {
43 description = "Library for interacting with UPB PIM";
44 homepage = "https://github.com/gwww/upb-lib";
45 changelog = "https://github.com/gwww/upb-lib/releases/tag/${version}";
46 license = licenses.mit;
47 maintainers = with maintainers; [ dotlambda ];
48 };
49}