about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2022-04-17 17:01:45 +0000
committerRobert Schütz <nix@dotlambda.de>2022-04-17 17:17:36 +0000
commite9055d047fc6cc1444dfc6af8c6d0609ff6c483f (patch)
tree838f6dd607167e84c95d736ff0314c43c9eff0de /pkgs/development
parent58f707cf86fc8ad7f41a8cf786abd2ee4a361ccb (diff)
python3Packages.pytomorrowio: init at 0.2.1
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 ];
+  };
+}