summary refs log tree commit diff
path: root/pkgs/development/python-modules/txaio/default.nix
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-05-16 21:39:44 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-05-16 21:39:44 +0200
commit9e5896496cfd5da5754018887f7ad3b256b3ad80 (patch)
treed16fadfe61a00d589289f72f27718ea70d46a071 /pkgs/development/python-modules/txaio/default.nix
parentcb6ec35052306d0d78fe238852394c3976608918 (diff)
parent74b74b05550f258e9055b824eff49b15637dd917 (diff)
downloadnixpkgs-9e5896496cfd5da5754018887f7ad3b256b3ad80.tar
nixpkgs-9e5896496cfd5da5754018887f7ad3b256b3ad80.tar.gz
nixpkgs-9e5896496cfd5da5754018887f7ad3b256b3ad80.tar.bz2
nixpkgs-9e5896496cfd5da5754018887f7ad3b256b3ad80.tar.lz
nixpkgs-9e5896496cfd5da5754018887f7ad3b256b3ad80.tar.xz
nixpkgs-9e5896496cfd5da5754018887f7ad3b256b3ad80.tar.zst
nixpkgs-9e5896496cfd5da5754018887f7ad3b256b3ad80.zip
Merge remote-tracking branch 'origin/master' into haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/txaio/default.nix')
-rw-r--r--pkgs/development/python-modules/txaio/default.nix51
1 files changed, 38 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/txaio/default.nix b/pkgs/development/python-modules/txaio/default.nix
index c2f2c9451bd..fa219a94513 100644
--- a/pkgs/development/python-modules/txaio/default.nix
+++ b/pkgs/development/python-modules/txaio/default.nix
@@ -1,30 +1,55 @@
-{ lib, buildPythonPackage, fetchPypi, pytest, mock, six, twisted, isPy37, isPy27 }:
+{ lib
+, buildPythonPackage
+, fetchPypi
+, mock
+, pytest-asyncio
+, pytestCheckHook
+, pythonOlder
+, six
+, twisted
+, zope_interface
+}:
 
 buildPythonPackage rec {
   pname = "txaio";
   version = "21.2.1";
-  disabled = isPy27;
+  disabled = pythonOlder "3.7";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "7d6f89745680233f1c4db9ddb748df5e88d2a7a37962be174c0fd04c8dba1dc8";
+    sha256 = "sha256-fW+JdFaAIz8cTbndt0jfXojSp6N5Yr4XTA/QTI26Hcg=";
   };
 
-  checkInputs = [ pytest mock ];
+  propagatedBuildInputs = [
+    six
+    twisted
+    zope_interface
+  ];
 
-  propagatedBuildInputs = [ six twisted ];
+  checkInputs = [
+    mock
+    pytest-asyncio
+    pytestCheckHook
+  ];
 
-  checkPhase = ''
-    py.test -k "not test_sdist"
-  '';
+  disabledTests = [
+    # No real value
+    "test_sdist"
+    # Some tests seems out-dated and require additional data
+    "test_as_future"
+    "test_errback"
+    "test_create_future"
+    "test_callback"
+    "test_immediate_result"
+    "test_cancel"
+  ];
 
-  # Needs some fixing
-  doCheck = false;
+  pythonImportsCheck = [ "txaio" ];
 
   meta = with lib; {
-    description = "Utilities to support code that runs unmodified on Twisted and asyncio.";
-    homepage    = "https://github.com/crossbario/txaio";
-    license     = licenses.mit;
+    description = "Utilities to support code that runs unmodified on Twisted and asyncio";
+    homepage = "https://github.com/crossbario/txaio";
+    license = licenses.mit;
     maintainers = with maintainers; [ nand0p ];
   };
 }