diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-24 22:49:10 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-04-24 15:28:56 -0700 |
commit | a0755baff358228799076e9f97f76ea9c9eb58d5 (patch) | |
tree | 618cb1b621958fc0c6a00b11b4f9a648c1eb2b6b /pkgs/development | |
parent | bce7201f725e0aa867f74185dc0f0e9c7bb8403a (diff) |
python3Packages.pysmartthings: init at 0.7.6
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pysmartthings/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pysmartthings/default.nix b/pkgs/development/python-modules/pysmartthings/default.nix new file mode 100644 index 0000000000000..e8a295c319c43 --- /dev/null +++ b/pkgs/development/python-modules/pysmartthings/default.nix @@ -0,0 +1,38 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pysmartthings"; + version = "0.7.6"; + + src = fetchFromGitHub { + owner = "andrewsayre"; + repo = pname; + rev = version; + sha256 = "0m91lfzdbmq6qv6bihd278psi9ghldxpa1d0dsbii2zf338188qj"; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "pysmartthings" ]; + + meta = with lib; { + description = "Python library for interacting with the SmartThings cloud API"; + homepage = "https://github.com/andrewsayre/pysmartthings"; + changelog = "https://github.com/andrewsayre/pysmartthings/releases/tag/${version}"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |