about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiocurrencylayer
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-23 17:59:12 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-11-23 11:14:22 -0800
commit80f8ca339233c0c0cfc962477d64e06f8841cdcd (patch)
tree23029bb2993114454bacc309801016f3a1fd9ea6 /pkgs/development/python-modules/aiocurrencylayer
parent95aad79a500930e61c31bd058c9692ae95592901 (diff)
python3Packages.aiocurrencylayer: init at 1.0.2
Diffstat (limited to 'pkgs/development/python-modules/aiocurrencylayer')
-rw-r--r--pkgs/development/python-modules/aiocurrencylayer/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiocurrencylayer/default.nix b/pkgs/development/python-modules/aiocurrencylayer/default.nix
new file mode 100644
index 0000000000000..777c8905c7d55
--- /dev/null
+++ b/pkgs/development/python-modules/aiocurrencylayer/default.nix
@@ -0,0 +1,50 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, httpx
+, poetry-core
+, pytest-asyncio
+, pytest-httpx
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "aiocurrencylayer";
+  version = "1.0.2";
+  format = "pyproject";
+
+  disabled = pythonOlder "3.8";
+
+  src = fetchFromGitHub {
+    owner = "home-assistant-ecosystem";
+    repo = pname;
+    rev = version;
+    sha256 = "EVqnrMatOk2I6hiCkiT5FOWvMY9LEK8LlSHqi0x9kuQ=";
+  };
+
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
+  propagatedBuildInputs = [
+    httpx
+  ];
+
+  checkInputs = [
+    pytest-asyncio
+    pytest-httpx
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [
+    "aiocurrencylayer"
+  ];
+
+  meta = with lib; {
+    description = "Python API for interacting with currencylayer";
+    homepage = "https://github.com/home-assistant-ecosystem/aiocurrencylayer";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}