From 18ae358e27feb1fc227229ffb6b57df461c2a0a6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 25 Jan 2021 21:50:39 +0100 Subject: [PATCH] python3Packages.pyedimax: init at 0.2.1 --- .../python-modules/pyedimax/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/pyedimax/default.nix diff --git a/pkgs/development/python-modules/pyedimax/default.nix b/pkgs/development/python-modules/pyedimax/default.nix new file mode 100644 index 000000000000..03229b30bddd --- /dev/null +++ b/pkgs/development/python-modules/pyedimax/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +}: + +buildPythonPackage rec { + pname = "pyedimax"; + version = "0.2.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1i3gr5vygqh2ryg67sl13aaql7nvf3nbybrg54628r4g7911b5rk"; + }; + + propagatedBuildInputs = [ requests ]; + + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "pyedimax" ]; + + meta = with lib; { + description = "Python library for interfacing with the Edimax smart plugs"; + homepage = "https://github.com/andreipop2005/pyedimax"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d37d837e4e12..587e995d15f6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5301,6 +5301,8 @@ in { pyechonest = callPackage ../development/python-modules/pyechonest { }; + pyedimax = callPackage ../development/python-modules/pyedimax { }; + pyee = callPackage ../development/python-modules/pyee { }; pyelftools = callPackage ../development/python-modules/pyelftools { };