forked from lopsided98/mavlink_influxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
32 lines (28 loc) · 898 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, nixShell ? false, buildPythonApplication, mypy, pymavlink
, influxdb, autopep8, pylint, rope }:
buildPythonApplication {
name = "mavlink-influxdb";
# lib.inNixShell can't be used here because it will return a false positive
# if this package is pulled into a shell
src = if nixShell then null else lib.cleanSourceWith {
filter = name: type: let baseName = baseNameOf (toString name); in !(
# Filter out mypy cache
(baseName == ".mypy_cache" && type == "directory")
);
src = lib.cleanSource ./.;
};
nativeBuildInputs = [
mypy
] ++ lib.optionals nixShell [
# Development dependencies
autopep8
pylint
rope
];
propagatedBuildInputs = [ pymavlink influxdb ];
meta = with lib; {
description = "Upload MAVLink dataflash logs to InfluxDB";
license = licenses.mit;
maintainers = with maintainers; [ lopsided98 ];
};
}