python3Packages.asyncssh: 2.6.0 -> 2.7.0

This commit is contained in:
Fabian Affolter
2021-07-02 10:20:36 +02:00
parent c535c86c9b
commit ccab0a2aa3
@@ -1,18 +1,49 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cryptography
, bcrypt, gssapi, libnacl, libsodium, nettle, pyopenssl
, openssl, openssh, pytestCheckHook }:
, bcrypt
, gssapi
, fido2
, libnacl
, libsodium
, nettle
, python-pkcs11
, pyopenssl
, openssl
, openssh
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "asyncssh";
version = "2.6.0";
disabled = pythonOlder "3.4";
version = "2.7.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "20f0ef553a1e64a7d38db86ba3a2f3907e72f1e81f3dfec5edb191383783c7d1";
sha256 = "sha256-GFAT2OZ3R8PA8BtyQWuL14QX2h30jHH3baU8YH71QbY=";
};
propagatedBuildInputs = [
bcrypt
cryptography
fido2
gssapi
libnacl
libsodium
nettle
python-pkcs11
pyopenssl
];
checkInputs = [
openssh
openssl
pytestCheckHook
];
patches = [
# Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730
#
@@ -23,32 +54,16 @@ buildPythonPackage rec {
./fix-sftp-chmod-test-nixos.patch
];
# Disables windows specific test (specifically the GSSAPI wrapper for Windows)
postPatch = ''
rm tests/sspi_stub.py
'';
propagatedBuildInputs = [
bcrypt
cryptography
gssapi
libnacl
libsodium
nettle
pyopenssl
disabledTestPaths = [
# Disables windows specific test (specifically the GSSAPI wrapper for Windows)
"tests/sspi_stub.py"
];
checkInputs = [
openssh
openssl
pytestCheckHook
];
disabledTests = [ "test_expired_root" "test_confirm" ];
pythonImportsCheck = [ "asyncssh" ];
meta = with lib; {
description = "Provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework";
homepage = "https://asyncssh.readthedocs.io/en/latest";
description = "Asynchronous SSHv2 Python client and server library";
homepage = "https://asyncssh.readthedocs.io/";
license = licenses.epl20;
maintainers = with maintainers; [ ];
};