0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

python3Packages.pycyphal: fixes (#403712)

This commit is contained in:
Aleksana 2025-05-04 17:53:56 +08:00 committed by GitHub
commit 9623baf496
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,23 +2,29 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
python-can,
# build system
setuptools,
# dependencies
numpy,
nunavut,
# optional dependencies
cobs,
libpcap,
nunavut,
numpy,
pyserial,
pytestCheckHook,
python-can,
# tests
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pycyphal";
version = "1.18.0";
format = "setuptools";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "OpenCyphal";
@ -28,7 +34,11 @@ buildPythonPackage rec {
fetchSubmodules = true;
};
propagatedBuildInputs = [
build-system = [ setuptools ];
pythonRelaxDeps = [ "numpy" ];
dependencies = [
numpy
nunavut
];
@ -67,13 +77,17 @@ buildPythonPackage rec {
disabledTestPaths = [
"pycyphal/application/__init__.py"
"pycyphal/application/_transport_factory.py"
"pycyphal/transport/udp/_ip/_link_layer.py"
"pycyphal/transport/udp/_ip/_v4.py"
"pycyphal/application/register/backend/dynamic.py"
"pycyphal/application/register/backend/static.py"
"pycyphal/transport/udp"
"tests/application"
"tests/demo"
"tests/dsdl"
"tests/presentation"
"tests/transport"
# These are flaky -- test against string representations of values
"pycyphal/application/register/_registry.py"
"pycyphal/application/register/_value.py"
];
pythonImportsCheck = [ "pycyphal" ];