Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / nxt-python / default.nix
blobefbec58b936a80b6a9fe35ec28da686b0c005bf6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pybluez
6 , pytestCheckHook
7 , pythonOlder
8 , pyusb
9 }:
11 buildPythonPackage rec {
12   pname = "nxt-python";
13   version = "3.3.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "schodet";
20     repo = pname;
21     rev = "refs/tags/${version}";
22     hash = "sha256-v65KEP5DuJsZAifd1Rh46x9lSAgBZgyo+e8PKSDKnhw=";
23   };
25   build-system = [
26     poetry-core
27   ];
29   dependencies = [
30     pyusb
31   ];
33   optional-dependencies = {
34     bluetooth = [
35       pybluez
36     ];
37   };
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [
44     "nxt"
45   ];
47   meta = with lib; {
48     description = "Python driver/interface for Lego Mindstorms NXT robot";
49     homepage = "https://github.com/schodet/nxt-python";
50     changelog = "https://github.com/schodet/nxt-python/releases/tag/${version}";
51     license = licenses.gpl3Only;
52     maintainers = with maintainers; [ ibizaman ];
53   };