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