diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/python-smarttub/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/python-smarttub/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/python-smarttub/default.nix b/nixpkgs/pkgs/development/python-modules/python-smarttub/default.nix new file mode 100644 index 000000000000..372c12c3599d --- /dev/null +++ b/nixpkgs/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.21"; + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "mdz"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-7phx6CI6sqUCZIUxL6ea25UWAcI3NAz66hIleUfN4bk="; + }; + + 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 ]; + }; +} |