diff options
Diffstat (limited to 'pkgs/development/python-modules/tornado')
-rw-r--r-- | pkgs/development/python-modules/tornado/4.nix | 17 | ||||
-rw-r--r-- | pkgs/development/python-modules/tornado/5.nix | 14 |
2 files changed, 16 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/tornado/4.nix b/pkgs/development/python-modules/tornado/4.nix index 3be82e40a29..5765dee4415 100644 --- a/pkgs/development/python-modules/tornado/4.nix +++ b/pkgs/development/python-modules/tornado/4.nix @@ -1,26 +1,27 @@ { lib -, python +, unittestCheckHook , buildPythonPackage , fetchPypi , isPy27 +, pythonAtLeast }: buildPythonPackage rec { pname = "tornado"; version = "4.5.3"; - disabled = isPy27 || python.pythonAtLeast "3.10"; - - # We specify the name of the test files to prevent - # https://github.com/NixOS/nixpkgs/issues/14634 - checkPhase = '' - ${python.interpreter} -m unittest discover *_test.py - ''; + disabled = isPy27 || pythonAtLeast "3.10"; src = fetchPypi { inherit pname version; sha256 = "02jzd23l4r6fswmwxaica9ldlyc2p6q8dk6dyff7j58fmdzf853d"; }; + checkInputs = [ unittestCheckHook ]; + + # We specify the name of the test files to prevent + # https://github.com/NixOS/nixpkgs/issues/14634 + unittestFlagsArray = [ "*_test.py" ]; + __darwinAllowLocalNetworking = true; meta = { diff --git a/pkgs/development/python-modules/tornado/5.nix b/pkgs/development/python-modules/tornado/5.nix index f0dc14b5fa2..5dfb4f80542 100644 --- a/pkgs/development/python-modules/tornado/5.nix +++ b/pkgs/development/python-modules/tornado/5.nix @@ -1,5 +1,5 @@ { lib -, python +, unittestCheckHook , buildPythonPackage , fetchPypi , isPy27 @@ -11,17 +11,17 @@ buildPythonPackage rec { version = "5.1.1"; disabled = isPy27 || pythonAtLeast "3.10"; - # We specify the name of the test files to prevent - # https://github.com/NixOS/nixpkgs/issues/14634 - checkPhase = '' - ${python.interpreter} -m unittest discover *_test.py - ''; - src = fetchPypi { inherit pname version; sha256 = "4e5158d97583502a7e2739951553cbd88a72076f152b4b11b64b9a10c4c49409"; }; + checkInputs = [ unittestCheckHook ]; + + # We specify the name of the test files to prevent + # https://github.com/NixOS/nixpkgs/issues/14634 + unittestFlagsArray = [ "*_test.py" ]; + __darwinAllowLocalNetworking = true; meta = { |