depot/third_party/nixpkgs/pkgs/development/python-modules/upb-lib/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

52 lines
984 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 ];
};
}