e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
49 lines
989 B
Nix
49 lines
989 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, can
|
|
, cobs
|
|
, libpcap
|
|
, nunavut
|
|
, numpy
|
|
, pyserial
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycyphal";
|
|
version = "1.15.4";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-0Mp8d/rNOOPLg0gUPWdOgp/d5n148dxcLceW1VtjrkQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
can
|
|
cobs
|
|
libpcap
|
|
numpy
|
|
nunavut
|
|
pyserial
|
|
];
|
|
|
|
# Can't seem to run the tests on nix
|
|
doCheck = false;
|
|
pythonImportsCheck = [
|
|
"pycyphal"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A full-featured implementation of the Cyphal protocol stack in Python";
|
|
longDescription = ''
|
|
Cyphal is an open technology for real-time intravehicular distributed computing and communication based on modern networking standards (Ethernet, CAN FD, etc.).
|
|
'';
|
|
homepage = "https://opencyphal.org/";
|
|
license = licenses.mit;
|
|
maintainers = teams.ororatech.members;
|
|
};
|
|
}
|