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:
commit
9623baf496
1 changed files with 25 additions and 11 deletions
|
@ -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" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue