0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +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, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
pythonOlder,
python-can, # build system
setuptools,
# dependencies
numpy,
nunavut,
# optional dependencies
cobs, cobs,
libpcap, libpcap,
nunavut,
numpy,
pyserial, pyserial,
pytestCheckHook, python-can,
# tests
pytest-asyncio, pytest-asyncio,
pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pycyphal"; pname = "pycyphal";
version = "1.18.0"; version = "1.18.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OpenCyphal"; owner = "OpenCyphal";
@ -28,7 +34,11 @@ buildPythonPackage rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
propagatedBuildInputs = [ build-system = [ setuptools ];
pythonRelaxDeps = [ "numpy" ];
dependencies = [
numpy numpy
nunavut nunavut
]; ];
@ -67,13 +77,17 @@ buildPythonPackage rec {
disabledTestPaths = [ disabledTestPaths = [
"pycyphal/application/__init__.py" "pycyphal/application/__init__.py"
"pycyphal/application/_transport_factory.py" "pycyphal/application/_transport_factory.py"
"pycyphal/transport/udp/_ip/_link_layer.py" "pycyphal/application/register/backend/dynamic.py"
"pycyphal/transport/udp/_ip/_v4.py" "pycyphal/application/register/backend/static.py"
"pycyphal/transport/udp"
"tests/application" "tests/application"
"tests/demo" "tests/demo"
"tests/dsdl" "tests/dsdl"
"tests/presentation" "tests/presentation"
"tests/transport" "tests/transport"
# These are flaky -- test against string representations of values
"pycyphal/application/register/_registry.py"
"pycyphal/application/register/_value.py"
]; ];
pythonImportsCheck = [ "pycyphal" ]; pythonImportsCheck = [ "pycyphal" ];