Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 95 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596{ lib, bcrypt, buildPythonPackage, cryptography, fetchPypi, fido2, gssapi, libnacl, libsodium, nettle, openssh, openssl, pyopenssl, pytestCheckHook, python-pkcs11, pythonOlder, setuptools, typing-extensions,}:
buildPythonPackage rec { pname = "asyncssh"; version = "2.20.0"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi { inherit pname version; hash = "sha256-AgtuOEsjKO+Gg5CK2Oc96ewrm2L9lkVx6pV7uphBKYM="; };
build-system = [ setuptools ];
dependencies = [ cryptography nettle typing-extensions ];
buildInputs = [ libsodium ];
optional-dependencies = { bcrypt = [ bcrypt ]; fido2 = [ fido2 ]; gssapi = [ gssapi ]; libnacl = [ libnacl ]; pkcs11 = [ python-pkcs11 ]; pyOpenSSL = [ pyopenssl ]; };
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ openssh openssl pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
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" ];
disabledTests = [ # No PIN set "TestSKAuthCTAP2" # Requires network access "test_connect_timeout_exceeded" # Fails in the sandbox "test_forward_remote" ];
pythonImportsCheck = [ "asyncssh" ];
meta = with lib; { description = "Asynchronous SSHv2 Python client and server library"; homepage = "https://asyncssh.readthedocs.io/"; changelog = "https://github.com/ronf/asyncssh/blob/v${version}/docs/changes.rst"; license = licenses.epl20; maintainers = [ ]; };}