From 6796193442a0170aa362718fb68818a5f71d7bd2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 26 Jan 2021 08:54:08 +0100 Subject: [PATCH] python3Packages.avion: init at 0.10 --- .../python-modules/avion/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/avion/default.nix diff --git a/pkgs/development/python-modules/avion/default.nix b/pkgs/development/python-modules/avion/default.nix new file mode 100644 index 000000000000..a456c110ff42 --- /dev/null +++ b/pkgs/development/python-modules/avion/default.nix @@ -0,0 +1,37 @@ +{ lib +, bluepy +, buildPythonPackage +, csrmesh +, fetchPypi +, pycryptodome +, requests +}: + +buildPythonPackage rec { + pname = "avion"; + version = "0.10"; + + src = fetchPypi { + inherit pname version; + sha256 = "0zgv45086b97ngyqxdp41wxb7hpn9g7alygc21j9y3dib700vzdz"; + }; + + propagatedBuildInputs = [ + bluepy + csrmesh + pycryptodome + requests + ]; + + # Project has no test + doCheck = false; + # bluepy/uuids.json is not found + # pythonImportsCheck = [ "avion" ]; + + meta = with lib; { + description = "Python API for controlling Avi-on Bluetooth dimmers"; + homepage = "https://github.com/mjg59/python-avion"; + license = with licenses; [ gpl3Plus ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f510f31eb33a..8c78e7e8528e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -547,6 +547,8 @@ in { avea = callPackage ../development/python-modules/avea { }; + avion = callPackage ../development/python-modules/avion { }; + avro3k = callPackage ../development/python-modules/avro3k { }; avro = callPackage ../development/python-modules/avro { };