3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/asyncssh/default.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
, cryptography
2018-09-16 09:48:14 +01:00
, bcrypt, gssapi, libnacl, libsodium, nettle, pyopenssl
, openssl, openssh }:
buildPythonPackage rec {
pname = "asyncssh";
2020-06-06 07:46:57 +01:00
version = "2.2.1";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
2020-06-06 07:46:57 +01:00
sha256 = "baf9f1aa397a104a0c3923bae927796ca57063ce62330767131b418cd833338e";
};
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
];
2018-09-16 09:48:14 +01:00
propagatedBuildInputs = [
bcrypt
cryptography
gssapi
libnacl
libsodium
nettle
pyopenssl
];
checkInputs = [
openssh
openssl
];
2018-09-16 09:48:14 +01:00
# Disables windows specific test (specifically the GSSAPI wrapper for Windows)
postPatch = ''
rm tests/sspi_stub.py
'';
meta = with stdenv.lib; {
description = "Provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework";
homepage = "https://asyncssh.readthedocs.io/en/latest";
license = licenses.epl20;
maintainers = with maintainers; [ worldofpeace ];
};
}