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