pythonPackages.asyncssh: 1.15.1 -> 1.16.1
https://github.com/ronf/asyncssh/blob/master/docs/changes.rst#release-1161-30-mar-2019
This commit is contained in:
parent
c93fd4a25e
commit
a39bb0fd99
@ -1,18 +1,35 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, fetchpatch
|
||||||
, cryptography
|
, cryptography
|
||||||
, bcrypt, gssapi, libnacl, libsodium, nettle, pyopenssl
|
, bcrypt, gssapi, libnacl, libsodium, nettle, pyopenssl
|
||||||
, openssl }:
|
, openssl, openssh }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "asyncssh";
|
pname = "asyncssh";
|
||||||
version = "1.15.1";
|
version = "1.16.1";
|
||||||
disabled = pythonOlder "3.4";
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "f2065a8b3af0c514c8de264e7b01f08df5213b707bacb7e7c080bd46c3e3bc35";
|
sha256 = "0qia1ay2dhwps5sfh0hif7mrv7yxvykxs9l7cmfp4m6hmqnn3r5r";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
# Restore libnacl support for curve25519/ed25519 as a fallback for PyCA
|
||||||
|
# Fixes https://github.com/ronf/asyncssh/issues/206 with older openssl
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/ronf/asyncssh/commit/1dee113bb3e4a6888de562b0413e9abd6a0f0f04.patch";
|
||||||
|
sha256 = "04bckdj7i6xk24lizkn3a8cj375pkz7yc57fc0vk222c6jzwzaml";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
bcrypt
|
bcrypt
|
||||||
cryptography
|
cryptography
|
||||||
@ -23,17 +40,20 @@ buildPythonPackage rec {
|
|||||||
pyopenssl
|
pyopenssl
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ openssl ];
|
checkInputs = [
|
||||||
|
openssh
|
||||||
|
openssl
|
||||||
|
];
|
||||||
|
|
||||||
# Disables windows specific test (specifically the GSSAPI wrapper for Windows)
|
# Disables windows specific test (specifically the GSSAPI wrapper for Windows)
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
rm ./tests/sspi_stub.py
|
rm tests/sspi_stub.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework";
|
description = "Provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework";
|
||||||
homepage = https://pypi.python.org/pypi/asyncssh;
|
homepage = https://asyncssh.readthedocs.io/en/latest;
|
||||||
license = licenses.epl20;
|
license = licenses.epl20;
|
||||||
maintainers = with maintainers; [ worldofpeace ];
|
maintainers = with maintainers; [ worldofpeace ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
|
||||||
|
index db9cc88..234004b 100644
|
||||||
|
--- a/tests/test_sftp.py
|
||||||
|
+++ b/tests/test_sftp.py
|
||||||
|
@@ -957,8 +957,8 @@ class _TestSFTP(_CheckSFTP):
|
||||||
|
|
||||||
|
try:
|
||||||
|
self._create_file('file')
|
||||||
|
- yield from sftp.chmod('file', 0o4321)
|
||||||
|
- self.assertEqual(stat.S_IMODE(os.stat('file').st_mode), 0o4321)
|
||||||
|
+ yield from sftp.chmod('file', 0o1234)
|
||||||
|
+ self.assertEqual(stat.S_IMODE(os.stat('file').st_mode), 0o1234)
|
||||||
|
finally:
|
||||||
|
remove('file')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user