about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2022-04-17 20:08:26 +0200
committerGitHub <noreply@github.com>2022-04-17 20:08:26 +0200
commit6a7286afec361c4208df2d193cb3c282e85fb6cd (patch)
treeee21199efc889b4f4e52cbe71a5fbf8cfab9ad81 /pkgs/development
parent8630ed444462874cd5c0ede2212a93d6f2ea73a3 (diff)
parentab62ad49ec68ce4412dc40adf348f680644a55df (diff)
Merge pull request #169081 from dotlambda/pytomorrowio-init
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/pytomorrowio/default.nix38
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 ];
+  };
+}