diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2022-04-17 20:08:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-17 20:08:26 +0200 |
commit | 6a7286afec361c4208df2d193cb3c282e85fb6cd (patch) | |
tree | ee21199efc889b4f4e52cbe71a5fbf8cfab9ad81 /pkgs/development | |
parent | 8630ed444462874cd5c0ede2212a93d6f2ea73a3 (diff) | |
parent | ab62ad49ec68ce4412dc40adf348f680644a55df (diff) |
Merge pull request #169081 from dotlambda/pytomorrowio-init
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pytomorrowio/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytomorrowio/default.nix b/pkgs/development/python-modules/pytomorrowio/default.nix new file mode 100644 index 0000000000000..2c695fc7e05a6 --- /dev/null +++ b/pkgs/development/python-modules/pytomorrowio/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, aiohttp +, pytest-asyncio +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pytomorrowio"; + version = "0.2.1"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "aabb41436fb5834b687d73b334d95be07a18d5943d27a1fd06271b749558ba0e"; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "pytomorrowio" ]; + + meta = { + description = "Async Python package to access the Tomorrow.io API"; + homepage = "https://github.com/raman325/pytomorrowio"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} |