2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
future,
|
|
|
|
lxml,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymavlink";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.4.41";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-7TIlzphdBhA6qyUa/Ig9BKmKHW21xzmV595MqssfZs0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
lxml
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
# No tests included in PyPI tarball. We cannot use the GitHub tarball because
|
|
|
|
# we would like to use the same commit of the mavlink messages repo as
|
|
|
|
# included in the PyPI tarball, and there is no easy way to determine what
|
|
|
|
# commit is included.
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
pythonImportsCheck = [ "pymavlink" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python MAVLink interface and utilities";
|
|
|
|
homepage = "https://github.com/ArduPilot/pymavlink";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
lgpl3Plus
|
|
|
|
mit
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
|
|
};
|
|
|
|
}
|