2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
2018-05-22 23:09:33 +01:00
|
|
|
, cryptography
|
2018-09-16 09:48:14 +01:00
|
|
|
, bcrypt, gssapi, libnacl, libsodium, nettle, pyopenssl
|
2020-11-24 00:03:56 +00:00
|
|
|
, openssl, openssh, pytestCheckHook }:
|
2018-05-22 23:09:33 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncssh";
|
2020-12-25 05:25:58 +00:00
|
|
|
version = "2.5.0";
|
2018-05-22 23:09:33 +01:00
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-25 05:25:58 +00:00
|
|
|
sha256 = "0b65e2af73a2e39a271bd627abbe4f7e4b0345486ed403e65987d79c72fcb70b";
|
2018-05-22 23:09:33 +01:00
|
|
|
};
|
|
|
|
|
2019-03-30 17:28:27 +00:00
|
|
|
patches = [
|
|
|
|
# Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730
|
|
|
|
#
|
|
|
|
# This changed the test to avoid setting the sticky bit
|
|
|
|
# because that's not allowed for plain files in FreeBSD.
|
|
|
|
# However that broke the test on NixOS, failing with
|
|
|
|
# "Operation not permitted"
|
|
|
|
./fix-sftp-chmod-test-nixos.patch
|
|
|
|
];
|
|
|
|
|
2020-11-24 00:03:56 +00:00
|
|
|
# Disables windows specific test (specifically the GSSAPI wrapper for Windows)
|
|
|
|
postPatch = ''
|
|
|
|
rm tests/sspi_stub.py
|
|
|
|
'';
|
|
|
|
|
2018-09-16 09:48:14 +01:00
|
|
|
propagatedBuildInputs = [
|
2018-05-22 23:09:33 +01:00
|
|
|
bcrypt
|
|
|
|
cryptography
|
|
|
|
gssapi
|
|
|
|
libnacl
|
|
|
|
libsodium
|
|
|
|
nettle
|
|
|
|
pyopenssl
|
|
|
|
];
|
|
|
|
|
2019-03-30 17:28:27 +00:00
|
|
|
checkInputs = [
|
|
|
|
openssh
|
|
|
|
openssl
|
2020-11-24 00:03:56 +00:00
|
|
|
pytestCheckHook
|
2019-03-30 17:28:27 +00:00
|
|
|
];
|
2018-09-16 09:48:14 +01:00
|
|
|
|
2020-11-24 00:03:56 +00:00
|
|
|
disabledTests = [ "test_expired_root" "test_confirm" ];
|
2018-05-22 23:09:33 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-22 23:09:33 +01:00
|
|
|
description = "Provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://asyncssh.readthedocs.io/en/latest";
|
2019-03-30 17:28:27 +00:00
|
|
|
license = licenses.epl20;
|
2018-05-22 23:09:33 +01:00
|
|
|
maintainers = with maintainers; [ worldofpeace ];
|
|
|
|
};
|
|
|
|
}
|