diff --git a/pkgs/development/python-modules/pyevilgenius/default.nix b/pkgs/development/python-modules/pyevilgenius/default.nix new file mode 100644 index 000000000000..28bb1a2c4c0a --- /dev/null +++ b/pkgs/development/python-modules/pyevilgenius/default.nix @@ -0,0 +1,42 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, async-timeout +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pyevilgenius"; + version = "1.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "home-assistant-libs"; + repo = pname; + rev = version; + sha256 = "06xnl93sqklg7gx0z50vm79xwww0yyw05c1yynajc9aijfi8cmi3"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + ]; + + # Project has no test + doCheck = false; + + pythonImportsCheck = [ + "pyevilgenius" + ]; + + meta = with lib; { + description = "Python SDK to interact with Evil Genius Labs devices"; + homepage = "https://github.com/home-assistant-libs/pyevilgenius"; + changelog = "https://github.com/home-assistant-libs/pyevilgenius/releases/tag/${version}"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7b7e9017fac..8b5bc60f2113 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6378,6 +6378,8 @@ in { pyevmasm = callPackage ../development/python-modules/pyevmasm { }; + pyevilgenius = callPackage ../development/python-modules/pyevilgenius { }; + pyexcel = callPackage ../development/python-modules/pyexcel { }; pyexcel-io = callPackage ../development/python-modules/pyexcel-io { };