nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonApplication,
4 fetchPypi,
5 stdenv,
6 click,
7 coloredlogs,
8 mido,
9 psutil,
10 pycyphal,
11 pysdl2,
12 python-rtmidi,
13 ruamel-yaml,
14 requests,
15 scipy,
16 simplejson,
17}:
18
19buildPythonApplication rec {
20 pname = "yakut";
21 version = "0.14.1";
22 format = "setuptools";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-wCchb0bSnwlEwgb/Oe0gHnkEU3F+cotlvv/WXAr72i8=";
27 };
28
29 buildInputs = [
30 (lib.getLib stdenv.cc.cc)
31 ];
32 dependencies = [
33 click
34 coloredlogs
35 psutil
36 pycyphal
37 ruamel-yaml
38 requests
39 scipy
40 simplejson
41 ];
42 optional-dependencies.joystick = [
43 pysdl2
44 mido
45 python-rtmidi
46 ];
47
48 # All these require extra permissions and/or actual hardware connected
49 doCheck = false;
50
51 meta = {
52 description = "Simple CLI tool for diagnostics and debugging of Cyphal networks";
53 longDescription = ''
54 Yakút is a simple cross-platform command-line interface (CLI) tool for diagnostics and debugging of Cyphal networks. By virtue of being based on PyCyphal, Yakut supports all Cyphal transports (UDP, serial, CAN, ...) and is compatible with all major features of the protocol. It is designed to be usable with GNU/Linux, Windows, and macOS.
55 '';
56 homepage = "https://github.com/OpenCyphal/yakut/";
57 license = lib.licenses.mit;
58 };
59}