depot/third_party/nixpkgs/pkgs/development/python-modules/pycyphal/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

49 lines
985 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, can
, cobs
, libpcap
, nunavut
, numpy
, pyserial
}:
buildPythonPackage rec {
pname = "pycyphal";
version = "1.15.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-KVX+DwcJp1sjpcG1Utl9me1LwWDZPof+O6hoUt1xlXA=";
};
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 ];
};
}