diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-08-27 11:40:53 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-09-01 21:23:20 +0200 |
commit | 027d986f3d2d62aba3093dc9d63c3e024e5bf064 (patch) | |
tree | ade2e6f58cd8dbc3c7887b48a9b16b772a04000e /pkgs/development/python-modules/paramiko | |
parent | 756d8f1d3fd8a915e3f7f94f1c519f97116237f2 (diff) |
python39Packages.paramiko: use pytestCheckHook, cleanup
Diffstat (limited to 'pkgs/development/python-modules/paramiko')
-rw-r--r-- | pkgs/development/python-modules/paramiko/default.nix | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/paramiko/default.nix b/pkgs/development/python-modules/paramiko/default.nix index c2237f68524f8..88d63f0de93f5 100644 --- a/pkgs/development/python-modules/paramiko/default.nix +++ b/pkgs/development/python-modules/paramiko/default.nix @@ -6,7 +6,7 @@ , invoke , pynacl , pyasn1 -, pytest +, pytestCheckHook , pytest-relaxed , mock }: @@ -20,25 +20,21 @@ buildPythonPackage rec { sha256 = "7f36f4ba2c0d81d219f4595e35f70d56cc94f9ac40a6acdf51d6ca210ce65035"; }; - checkInputs = [ invoke pytest mock pytest-relaxed ]; propagatedBuildInputs = [ bcrypt cryptography pynacl pyasn1 ]; - __darwinAllowLocalNetworking = true; + checkInputs = [ invoke pytestCheckHook pytest-relaxed mock ]; + + disabledTestPaths = [ + "tests/test_sftp.py" + "tests/test_config.py" + ]; - # 2 sftp tests fail (skip for now) - # test_config relies on artifacts to be to downloaded - # RSA tests don't have valid keys - checkPhase = '' - pytest tests \ - --ignore=tests/test_sftp.py \ - --ignore=tests/test_config.py - ''; + __darwinAllowLocalNetworking = true; meta = with pkgs.lib; { homepage = "https://github.com/paramiko/paramiko/"; description = "Native Python SSHv2 protocol library"; license = licenses.lgpl21Plus; - longDescription = '' This is a library for making SSH2 connections (client or server). Emphasis is on using SSH2 as an alternative to SSL for making secure |