2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-02-10 20:34:41 +00:00
|
|
|
, bcrypt
|
2021-07-14 22:03:04 +00:00
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, cryptography
|
2022-02-10 20:34:41 +00:00
|
|
|
, fetchPypi
|
2021-07-14 22:03:04 +00:00
|
|
|
, fido2
|
2022-02-10 20:34:41 +00:00
|
|
|
, gssapi
|
2021-07-14 22:03:04 +00:00
|
|
|
, libnacl
|
|
|
|
, libsodium
|
|
|
|
, nettle
|
|
|
|
, openssh
|
2022-02-10 20:34:41 +00:00
|
|
|
, openssl
|
|
|
|
, pyopenssl
|
2021-07-14 22:03:04 +00:00
|
|
|
, pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
, python-pkcs11
|
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
2021-07-14 22:03:04 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncssh";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.12.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-J0EBMixLlBgjru2OGrbnvlGRaGxtstK9Na/rowUF54A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bcrypt
|
|
|
|
cryptography
|
2021-07-14 22:03:04 +00:00
|
|
|
fido2
|
2020-04-24 23:36:52 +00:00
|
|
|
gssapi
|
|
|
|
libnacl
|
|
|
|
libsodium
|
|
|
|
nettle
|
|
|
|
pyopenssl
|
2022-02-10 20:34:41 +00:00
|
|
|
python-pkcs11
|
|
|
|
typing-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
openssh
|
|
|
|
openssl
|
2020-11-24 20:58:05 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-07-14 22:03:04 +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
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Disables windows specific test (specifically the GSSAPI wrapper for Windows)
|
|
|
|
"tests/sspi_stub.py"
|
|
|
|
];
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
disabledTests = [
|
|
|
|
# No PIN set
|
|
|
|
"TestSKAuthCTAP2"
|
2021-12-06 16:07:01 +00:00
|
|
|
# Requires network access
|
|
|
|
"test_connect_timeout_exceeded"
|
2022-02-10 20:34:41 +00:00
|
|
|
# Fails in the sandbox
|
|
|
|
"test_forward_remote"
|
2021-10-17 09:34:42 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asyncssh"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-07-14 22:03:04 +00:00
|
|
|
description = "Asynchronous SSHv2 Python client and server library";
|
|
|
|
homepage = "https://asyncssh.readthedocs.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.epl20;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|