summary refs log tree commit diff
path: root/pkgs/development/python-modules/aioxmpp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/aioxmpp/default.nix')
-rw-r--r--pkgs/development/python-modules/aioxmpp/default.nix68
1 files changed, 68 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aioxmpp/default.nix b/pkgs/development/python-modules/aioxmpp/default.nix
new file mode 100644
index 00000000000..133d9ffc726
--- /dev/null
+++ b/pkgs/development/python-modules/aioxmpp/default.nix
@@ -0,0 +1,68 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, aiosasl
+, aioopenssl
+, babel
+, dnspython
+, lxml
+, multidict
+, pyasn1
+, pyasn1-modules
+, pyopenssl
+, sortedcollections
+, tzlocal
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "aioxmpp";
+  version = "0.13.3";
+
+  format = "setuptools";
+
+  src = fetchFromGitHub {
+    owner = "horazont";
+    repo = "aioxmpp";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-bQPKEM5eKhFI3Kx3U1espdxqjnG4yUgOXmYCrd98PDo=";
+  };
+
+  propagatedBuildInputs = [
+    aiosasl
+    aioopenssl
+    babel
+    dnspython
+    lxml
+    multidict
+    pyasn1
+    pyasn1-modules
+    pyopenssl
+    sortedcollections
+    tzlocal
+  ];
+
+  pythonImportsCheck = [
+    "aioxmpp"
+    "aioxmpp.node"
+    "aioxmpp.security_layer"
+    "aioxmpp.stanza"
+    "aioxmpp.stream"
+  ];
+
+  nativeCheckInputs = [
+    pytestCheckHook
+  ];
+
+  disabledTestPaths = [
+    "benchmarks"
+  ];
+
+  meta = {
+    changelog = "https://github.com/horazont/aioxmpp/blob/${src.rev}/docs/api/changelog.rst";
+    description = "Pure-python XMPP library for asyncio";
+    homepage = "https://github.com/horazont/aioxmpp";
+    license = lib.licenses.lgpl3Plus;
+    maintainers = with lib.maintainers; [ dotlambda ];
+  };
+}