From 96d70d7b85c52901dd7d395197e67e7709ebb017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 30 Jun 2021 16:49:33 +0200 Subject: [PATCH] python3Packages.aiomusiccast: init at 0.8.0 --- .../python-modules/aiomusiccast/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/aiomusiccast/default.nix diff --git a/pkgs/development/python-modules/aiomusiccast/default.nix b/pkgs/development/python-modules/aiomusiccast/default.nix new file mode 100644 index 000000000000..921bfbac6466 --- /dev/null +++ b/pkgs/development/python-modules/aiomusiccast/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, poetry-core +, aiohttp +}: + +buildPythonPackage rec { + pname = "aiomusiccast"; + version = "0.8.0"; + + format = "pyproject"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "vigonotion"; + repo = "aiomusiccast"; + rev = version; + sha256 = "1x55w2vhb5mgvlg19cs887xd7fg0cwnp6hb34vajp80q4yff9xk5"; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + # upstream has no tests + doCheck = false; + + pythonImportsCheck = [ "aiomusiccast" ]; + + meta = with lib; { + description = "Companion library for musiccast devices intended for the Home Assistant integration"; + homepage = "https://github.com/vigonotion/aiomusiccast"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 96f5f65a93da..a7db8b62599a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -325,6 +325,8 @@ in { aiomultiprocess = callPackage ../development/python-modules/aiomultiprocess { }; + aiomusiccast = callPackage ../development/python-modules/aiomusiccast { }; + aiomysql = callPackage ../development/python-modules/aiomysql { }; aionotify = callPackage ../development/python-modules/aionotify { };