Skip to content

Commit

Permalink
pythonPackages.asyncssh: Switch PyTestCheckHook, disable failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored and Jonathan Ringer committed Nov 24, 2020
1 parent cde89e3 commit abfd29c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pkgs/development/python-modules/asyncssh/default.nix
@@ -1,7 +1,7 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
, cryptography
, bcrypt, gssapi, libnacl, libsodium, nettle, pyopenssl
, openssl, openssh }:
, openssl, openssh, pytestCheckHook }:

buildPythonPackage rec {
pname = "asyncssh";
Expand All @@ -23,6 +23,11 @@ buildPythonPackage rec {
./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
Expand All @@ -36,12 +41,10 @@ buildPythonPackage rec {
checkInputs = [
openssh
openssl
pytestCheckHook
];

# Disables windows specific test (specifically the GSSAPI wrapper for Windows)
postPatch = ''
rm tests/sspi_stub.py
'';
disabledTests = [ "test_expired_root" "test_confirm" ];

meta = with stdenv.lib; {
description = "Provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework";
Expand Down

0 comments on commit abfd29c

Please sign in to comment.