mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
50 lines
982 B
Nix
50 lines
982 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pyserial-asyncio-fast,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pytz,
|
|
poetry-core,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "upb-lib";
|
|
version = "0.5.6";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gwww";
|
|
repo = "upb-lib";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-e8LYywKA5lNZ4UYFZTwcfePDWB4cTNz38Tiy4xzOxOs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|