summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/asyncssh
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-07-02 10:20:36 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-07-02 10:20:36 +0200
commitccab0a2aa334b967e926c78cbd90c663c9101263 (patch)
tree4599f6c243be50c8781b18471e4f276b5a6b5943 /pkgs/development/python-modules/asyncssh
parentpython3Packages.python-pkcs11: init at 0.7.0 (diff)
downloadnixpkgs-ccab0a2aa334b967e926c78cbd90c663c9101263.tar.gz
python3Packages.asyncssh: 2.6.0 -> 2.7.0
Diffstat (limited to 'pkgs/development/python-modules/asyncssh')
-rw-r--r--pkgs/development/python-modules/asyncssh/default.nix63
1 files changed, 39 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/asyncssh/default.nix b/pkgs/development/python-modules/asyncssh/default.nix
index f02f5291bf15..160a90a0e6d0 100644
--- a/pkgs/development/python-modules/asyncssh/default.nix
+++ b/pkgs/development/python-modules/asyncssh/default.nix
@@ -1,40 +1,40 @@
-{ lib, buildPythonPackage, fetchPypi, pythonOlder
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
, cryptography
-, bcrypt, gssapi, libnacl, libsodium, nettle, pyopenssl
-, openssl, openssh, pytestCheckHook }:
+, bcrypt
+, gssapi
+, fido2
+, libnacl
+, libsodium
+, nettle
+, python-pkcs11
+, pyopenssl
+, openssl
+, openssh
+, pytestCheckHook
+}:
buildPythonPackage rec {
pname = "asyncssh";
- version = "2.6.0";
- disabled = pythonOlder "3.4";
+ version = "2.7.0";
+ disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "20f0ef553a1e64a7d38db86ba3a2f3907e72f1e81f3dfec5edb191383783c7d1";
+ sha256 = "sha256-GFAT2OZ3R8PA8BtyQWuL14QX2h30jHH3baU8YH71QbY=";
};
- 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
- ];
-
- # Disables windows specific test (specifically the GSSAPI wrapper for Windows)
- postPatch = ''
- rm tests/sspi_stub.py
- '';
-
propagatedBuildInputs = [
bcrypt
cryptography
+ fido2
gssapi
libnacl
libsodium
nettle
+ python-pkcs11
pyopenssl
];
@@ -44,11 +44,26 @@ buildPythonPackage rec {
pytestCheckHook
];
- disabledTests = [ "test_expired_root" "test_confirm" ];
+ 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" ];
meta = with 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";
+ description = "Asynchronous SSHv2 Python client and server library";
+ homepage = "https://asyncssh.readthedocs.io/";
license = licenses.epl20;
maintainers = with maintainers; [ ];
};