python39Packages.paramiko: use pytestCheckHook, cleanup

This commit is contained in:
Sandro Jäckel 2021-08-27 11:40:53 +02:00 committed by Martin Weinelt
parent 06df8a097c
commit 8c67da8bab

View File

@ -6,7 +6,7 @@
, invoke , invoke
, pynacl , pynacl
, pyasn1 , pyasn1
, pytest , pytestCheckHook
, pytest-relaxed , pytest-relaxed
, mock , mock
}: }:
@ -20,25 +20,21 @@ buildPythonPackage rec {
sha256 = "7f36f4ba2c0d81d219f4595e35f70d56cc94f9ac40a6acdf51d6ca210ce65035"; sha256 = "7f36f4ba2c0d81d219f4595e35f70d56cc94f9ac40a6acdf51d6ca210ce65035";
}; };
checkInputs = [ invoke pytest mock pytest-relaxed ];
propagatedBuildInputs = [ bcrypt cryptography pynacl pyasn1 ]; propagatedBuildInputs = [ bcrypt cryptography pynacl pyasn1 ];
__darwinAllowLocalNetworking = true; checkInputs = [ invoke pytestCheckHook pytest-relaxed mock ];
# 2 sftp tests fail (skip for now) disabledTestPaths = [
# test_config relies on artifacts to be to downloaded "tests/test_sftp.py"
# RSA tests don't have valid keys "tests/test_config.py"
checkPhase = '' ];
pytest tests \
--ignore=tests/test_sftp.py \ __darwinAllowLocalNetworking = true;
--ignore=tests/test_config.py
'';
meta = with pkgs.lib; { meta = with pkgs.lib; {
homepage = "https://github.com/paramiko/paramiko/"; homepage = "https://github.com/paramiko/paramiko/";
description = "Native Python SSHv2 protocol library"; description = "Native Python SSHv2 protocol library";
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;
longDescription = '' longDescription = ''
This is a library for making SSH2 connections (client or server). This is a library for making SSH2 connections (client or server).
Emphasis is on using SSH2 as an alternative to SSL for making secure Emphasis is on using SSH2 as an alternative to SSL for making secure