nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 918 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pybluez, 7 pytestCheckHook, 8 pyusb, 9 pillow, 10}: 11 12buildPythonPackage rec { 13 pname = "nxt-python"; 14 version = "3.5.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "schodet"; 19 repo = "nxt-python"; 20 tag = version; 21 hash = "sha256-ffJ7VhXT5I7i5JYfnjFBaud0CxoVBFWx6kRdAz+Ry00="; 22 }; 23 24 build-system = [ poetry-core ]; 25 26 dependencies = [ 27 pyusb 28 pillow 29 ]; 30 31 optional-dependencies = { 32 bluetooth = [ pybluez ]; 33 }; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "nxt" ]; 38 39 meta = { 40 description = "Python driver/interface for Lego Mindstorms NXT robot"; 41 homepage = "https://github.com/schodet/nxt-python"; 42 changelog = "https://github.com/schodet/nxt-python/releases/tag/${src.tag}"; 43 license = lib.licenses.gpl3Only; 44 maintainers = with lib.maintainers; [ ibizaman ]; 45 }; 46}