lol

Merge pull request #128962 from fabaff/bump-asyncssh

authored by

Sandro and committed by
GitHub
dc4d3016 d0cec56c

+85 -24
+39 -24
pkgs/development/python-modules/asyncssh/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, pythonOlder 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 2 5 , cryptography 3 - , bcrypt, gssapi, libnacl, libsodium, nettle, pyopenssl 4 - , openssl, openssh, pytestCheckHook }: 6 + , bcrypt 7 + , gssapi 8 + , fido2 9 + , libnacl 10 + , libsodium 11 + , nettle 12 + , python-pkcs11 13 + , pyopenssl 14 + , openssl 15 + , openssh 16 + , pytestCheckHook 17 + }: 5 18 6 19 buildPythonPackage rec { 7 20 pname = "asyncssh"; 8 - version = "2.6.0"; 9 - disabled = pythonOlder "3.4"; 21 + version = "2.7.0"; 22 + disabled = pythonOlder "3.6"; 10 23 11 24 src = fetchPypi { 12 25 inherit pname version; 13 - sha256 = "20f0ef553a1e64a7d38db86ba3a2f3907e72f1e81f3dfec5edb191383783c7d1"; 26 + sha256 = "sha256-GFAT2OZ3R8PA8BtyQWuL14QX2h30jHH3baU8YH71QbY="; 14 27 }; 15 28 16 - patches = [ 17 - # Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730 18 - # 19 - # This changed the test to avoid setting the sticky bit 20 - # because that's not allowed for plain files in FreeBSD. 21 - # However that broke the test on NixOS, failing with 22 - # "Operation not permitted" 23 - ./fix-sftp-chmod-test-nixos.patch 24 - ]; 25 - 26 - # Disables windows specific test (specifically the GSSAPI wrapper for Windows) 27 - postPatch = '' 28 - rm tests/sspi_stub.py 29 - ''; 30 - 31 29 propagatedBuildInputs = [ 32 30 bcrypt 33 31 cryptography 32 + fido2 34 33 gssapi 35 34 libnacl 36 35 libsodium 37 36 nettle 37 + python-pkcs11 38 38 pyopenssl 39 39 ]; 40 40 ··· 44 44 pytestCheckHook 45 45 ]; 46 46 47 - disabledTests = [ "test_expired_root" "test_confirm" ]; 47 + patches = [ 48 + # Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730 49 + # 50 + # This changed the test to avoid setting the sticky bit 51 + # because that's not allowed for plain files in FreeBSD. 52 + # However that broke the test on NixOS, failing with 53 + # "Operation not permitted" 54 + ./fix-sftp-chmod-test-nixos.patch 55 + ]; 56 + 57 + disabledTestPaths = [ 58 + # Disables windows specific test (specifically the GSSAPI wrapper for Windows) 59 + "tests/sspi_stub.py" 60 + ]; 61 + 62 + pythonImportsCheck = [ "asyncssh" ]; 48 63 49 64 meta = with lib; { 50 - description = "Provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework"; 51 - homepage = "https://asyncssh.readthedocs.io/en/latest"; 65 + description = "Asynchronous SSHv2 Python client and server library"; 66 + homepage = "https://asyncssh.readthedocs.io/"; 52 67 license = licenses.epl20; 53 68 maintainers = with maintainers; [ ]; 54 69 };
+44
pkgs/development/python-modules/python-pkcs11/default.nix
··· 1 + { lib 2 + , asn1crypto 3 + , buildPythonPackage 4 + , cached-property 5 + , cython 6 + , fetchFromGitHub 7 + , setuptools-scm 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "python-pkcs11"; 12 + version = "0.7.0"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "danni"; 16 + repo = pname; 17 + rev = "v${version}"; 18 + sha256 = "0kncbipfpsb7m7mhv5s5b9wk604h1j08i2j26fn90pklgqll0xhv"; 19 + }; 20 + 21 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 22 + 23 + nativeBuildInputs = [ 24 + cython 25 + setuptools-scm 26 + ]; 27 + 28 + propagatedBuildInputs = [ 29 + cached-property 30 + asn1crypto 31 + ]; 32 + 33 + # Test require additional setup 34 + doCheck = false; 35 + 36 + pythonImportsCheck = [ "pkcs11" ]; 37 + 38 + meta = with lib; { 39 + description = "PKCS#11/Cryptoki support for Python"; 40 + homepage = "https://github.com/danni/python-pkcs11"; 41 + license = with licenses; [ mit ]; 42 + maintainers = with maintainers; [ fab ]; 43 + }; 44 + }
+2
pkgs/top-level/python-packages.nix
··· 7063 7063 7064 7064 python-pipedrive = callPackage ../development/python-modules/python-pipedrive { }; 7065 7065 7066 + python-pkcs11 = callPackage ../development/python-modules/python-pkcs11 { }; 7067 + 7066 7068 python-prctl = callPackage ../development/python-modules/python-prctl { }; 7067 7069 7068 7070 python-ptrace = callPackage ../development/python-modules/python-ptrace { };