2021-07-02 09:20:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2018-05-22 23:09:33 +01:00
|
|
|
, cryptography
|
2021-07-02 09:20:36 +01:00
|
|
|
, bcrypt
|
|
|
|
, gssapi
|
|
|
|
, fido2
|
|
|
|
, libnacl
|
|
|
|
, libsodium
|
|
|
|
, nettle
|
|
|
|
, python-pkcs11
|
|
|
|
, pyopenssl
|
|
|
|
, openssl
|
|
|
|
, openssh
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-05-22 23:09:33 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncssh";
|
2021-07-02 09:20:36 +01:00
|
|
|
version = "2.7.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-05-22 23:09:33 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-02 09:20:36 +01:00
|
|
|
sha256 = "sha256-GFAT2OZ3R8PA8BtyQWuL14QX2h30jHH3baU8YH71QbY=";
|
2018-05-22 23:09:33 +01:00
|
|
|
};
|
|
|
|
|
2018-09-16 09:48:14 +01:00
|
|
|
propagatedBuildInputs = [
|
2018-05-22 23:09:33 +01:00
|
|
|
bcrypt
|
|
|
|
cryptography
|
2021-07-02 09:20:36 +01:00
|
|
|
fido2
|
2018-05-22 23:09:33 +01:00
|
|
|
gssapi
|
|
|
|
libnacl
|
|
|
|
libsodium
|
|
|
|
nettle
|
2021-07-02 09:20:36 +01:00
|
|
|
python-pkcs11
|
2018-05-22 23:09:33 +01:00
|
|
|
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
|
|
|
|
2021-07-02 09:20:36 +01: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
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Disables windows specific test (specifically the GSSAPI wrapper for Windows)
|
|
|
|
"tests/sspi_stub.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "asyncssh" ];
|
2018-05-22 23:09:33 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-07-02 09:20:36 +01:00
|
|
|
description = "Asynchronous SSHv2 Python client and server library";
|
|
|
|
homepage = "https://asyncssh.readthedocs.io/";
|
2019-03-30 17:28:27 +00:00
|
|
|
license = licenses.epl20;
|
2021-05-05 10:25:45 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-05-22 23:09:33 +01:00
|
|
|
};
|
|
|
|
}
|