blob: 655f9c10e4813eb34d877cf7a371a0e9732f4e0d (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pybluez,
pytestCheckHook,
pyusb,
pillow,
}:
buildPythonPackage rec {
pname = "nxt-python";
version = "3.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "schodet";
repo = "nxt-python";
tag = version;
hash = "sha256-ffJ7VhXT5I7i5JYfnjFBaud0CxoVBFWx6kRdAz+Ry00=";
};
build-system = [ poetry-core ];
dependencies = [
pyusb
pillow
];
optional-dependencies = {
bluetooth = [ pybluez ];
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nxt" ];
meta = {
description = "Python driver/interface for Lego Mindstorms NXT robot";
homepage = "https://github.com/schodet/nxt-python";
changelog = "https://github.com/schodet/nxt-python/releases/tag/${src.tag}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ ibizaman ];
};
}
|