2022-05-29 11:10:09 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-02-06 10:21:35 +01:00
|
|
|
, bcrypt
|
2021-07-02 10:20:36 +02:00
|
|
|
, buildPythonPackage
|
2018-05-22 22:09:33 +00:00
|
|
|
, cryptography
|
2022-02-06 10:21:35 +01:00
|
|
|
, fetchPypi
|
2021-07-02 10:20:36 +02:00
|
|
|
, fido2
|
2022-02-06 10:21:35 +01:00
|
|
|
, gssapi
|
2021-07-02 10:20:36 +02:00
|
|
|
, libnacl
|
|
|
|
, libsodium
|
|
|
|
, nettle
|
|
|
|
, openssh
|
2022-02-06 10:21:35 +01:00
|
|
|
, openssl
|
|
|
|
, pyopenssl
|
2021-07-02 10:20:36 +02:00
|
|
|
, pytestCheckHook
|
2022-02-06 10:21:35 +01:00
|
|
|
, python-pkcs11
|
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
2021-07-02 10:20:36 +02:00
|
|
|
}:
|
2018-05-22 22:09:33 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncssh";
|
2022-12-29 09:08:27 +00:00
|
|
|
version = "2.13.0";
|
2021-11-07 00:22:26 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-07-02 10:20:36 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-05-22 22:09:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-29 10:53:53 +01:00
|
|
|
hash = "sha256-vn4ctHIl3JiZ5WRy/cTarANYSmhDZ1MpwM5nF5yyDik=";
|
2018-05-22 22:09:33 +00:00
|
|
|
};
|
|
|
|
|
2018-09-16 04:48:14 -04:00
|
|
|
propagatedBuildInputs = [
|
2018-05-22 22:09:33 +00:00
|
|
|
bcrypt
|
|
|
|
cryptography
|
2021-07-02 10:20:36 +02:00
|
|
|
fido2
|
2018-05-22 22:09:33 +00:00
|
|
|
gssapi
|
|
|
|
libnacl
|
|
|
|
libsodium
|
|
|
|
nettle
|
|
|
|
pyopenssl
|
2022-02-06 10:21:35 +01:00
|
|
|
python-pkcs11
|
|
|
|
typing-extensions
|
2018-05-22 22:09:33 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2019-03-30 13:28:27 -04:00
|
|
|
openssh
|
|
|
|
openssl
|
2020-11-24 01:03:56 +01:00
|
|
|
pytestCheckHook
|
2019-03-30 13:28:27 -04:00
|
|
|
];
|
2018-09-16 04:48:14 -04:00
|
|
|
|
2021-07-02 10:20:36 +02: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:57:27 +02:00
|
|
|
disabledTests = [
|
|
|
|
# No PIN set
|
|
|
|
"TestSKAuthCTAP2"
|
2021-11-07 00:22:26 +01:00
|
|
|
# Requires network access
|
|
|
|
"test_connect_timeout_exceeded"
|
2022-02-06 10:21:35 +01:00
|
|
|
# Fails in the sandbox
|
|
|
|
"test_forward_remote"
|
2021-10-17 09:57:27 +02:00
|
|
|
];
|
|
|
|
|
2021-11-07 00:22:26 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asyncssh"
|
|
|
|
];
|
2018-05-22 22:09:33 +00:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-05-29 11:10:09 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2021-07-02 10:20:36 +02:00
|
|
|
description = "Asynchronous SSHv2 Python client and server library";
|
|
|
|
homepage = "https://asyncssh.readthedocs.io/";
|
2022-12-29 10:53:53 +01:00
|
|
|
changelog = "https://github.com/ronf/asyncssh/blob/v${version}/docs/changes.rst";
|
2019-03-30 13:28:27 -04:00
|
|
|
license = licenses.epl20;
|
2021-05-05 11:25:45 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-05-22 22:09:33 +00:00
|
|
|
};
|
|
|
|
}
|