From 0c201d1f78e7793265f69625607332b0ad8c7d99 Mon Sep 17 00:00:00 2001 From: Alex M Date: Sun, 20 Jun 2021 09:30:36 -0700 Subject: [PATCH] idasen: init at 0.7.1 --- .../python-modules/idasen/default.nix | 50 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/idasen/default.nix diff --git a/pkgs/development/python-modules/idasen/default.nix b/pkgs/development/python-modules/idasen/default.nix new file mode 100644 index 000000000000..d1bacfbe826a --- /dev/null +++ b/pkgs/development/python-modules/idasen/default.nix @@ -0,0 +1,50 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, bleak +, pyyaml +, voluptuous +, pytestCheckHook +, pytest-asyncio +, poetry-core +}: + +buildPythonPackage rec { + pname = "idasen"; + version = "0.7.1"; + format = "pyproject"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "newAM"; + repo = "idasen"; + rev = "v${version}"; + sha256 = "1jdgdby33fd63mnxrfv04dz4fsrikkfmc0ybwwxi816mbkml7n34"; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + bleak + pyyaml + voluptuous + ]; + + checkInputs = [ + pytestCheckHook + pytest-asyncio + ]; + + pythonImportsCheck = [ "idasen" ]; + + meta = with lib; { + description = "Python API and CLI for the ikea IDÅSEN desk"; + homepage = "https://github.com/newAM/idasen"; + license = licenses.mit; + maintainers = with maintainers; [ newam ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 40be91d9a71a..d4b64147598e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15659,6 +15659,8 @@ in id3lib = callPackage ../development/libraries/id3lib { }; + idasen = with python3Packages; toPythonApplication idasen; + ilbc = callPackage ../development/libraries/ilbc { }; ilixi = callPackage ../development/libraries/ilixi { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d3c455f41fef..d07c92ba6c80 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3385,6 +3385,8 @@ in { ics = callPackage ../development/python-modules/ics { }; + idasen = callPackage ../development/python-modules/idasen { }; + identify = callPackage ../development/python-modules/identify { }; idna = callPackage ../development/python-modules/idna { };