Merge pull request #115138 from fabaff/python-smarttub

python3Packages.python-smarttub: init at 0.0.19
This commit is contained in:
Sandro 2021-03-05 00:43:05 +01:00 committed by GitHub
commit cc63cdb4bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -6523,6 +6523,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;
};