From 407e5f00f530d95855a2e03c17d30886542c0d03 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Mar 2021 21:15:41 +0100 Subject: [PATCH] python3Packages.python-smarttub: init at 0.0.19 --- .../python-smarttub/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/python-smarttub/default.nix diff --git a/pkgs/development/python-modules/python-smarttub/default.nix b/pkgs/development/python-modules/python-smarttub/default.nix new file mode 100644 index 000000000000..3e5889b93560 --- /dev/null +++ b/pkgs/development/python-modules/python-smarttub/default.nix @@ -0,0 +1,47 @@ +{ lib +, aiohttp +, aresponses +, buildPythonPackage +, fetchFromGitHub +, inflection +, pyjwt +, pytest-asyncio +, pytestCheckHook +, python-dateutil +, pythonOlder +}: + +buildPythonPackage rec { + pname = "python-smarttub"; + version = "0.0.19"; + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "mdz"; + repo = pname; + rev = "v${version}"; + sha256 = "01i4pvgvpl7inwhy53c6b34pi5zvfiv2scn507j8jdg5cjs04g80"; + }; + + propagatedBuildInputs = [ + aiohttp + inflection + pyjwt + python-dateutil + ]; + + checkInputs = [ + aresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "smarttub" ]; + + meta = with lib; { + description = "Python API for SmartTub enabled hot tubs"; + homepage = "https://github.com/mdz/python-smarttub"; + 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 16c06ad170b9..877f2141a823 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6519,6 +6519,8 @@ in { python-slugify = callPackage ../development/python-modules/python-slugify { }; + python-smarttub = callPackage ../development/python-modules/python-smarttub { }; + python-snap7 = callPackage ../development/python-modules/python-snap7 { inherit (pkgs) snap7; };