python310Packages.foolscap: 21.7.0 -> 23.3.0

+19 -20
+19 -20
pkgs/development/python-modules/foolscap/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , fetchpatch 5 , mock 6 , pyopenssl 7 , pytestCheckHook 8 , service-identity 9 , twisted 10 }: 11 12 buildPythonPackage rec { 13 pname = "foolscap"; 14 - version = "21.7.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 - sha256 = "sha256-6dGFU4YNk1joXXZi2c2L84JtUbTs1ICgXfv0/EU2P4Q="; 19 }; 20 21 - patches = [ 22 - (fetchpatch { 23 - name = "fix-tests-with-twisted-22.10.0.patch"; 24 - url = "https://github.com/warner/foolscap/commit/c04202eb5d4cf052e650ec2985ea6037605fd79e.patch"; 25 - hash = "sha256-RldDc18n3WYHdYg0ZmM8PBffIuiGa1NIfdoHs3mEEfc="; 26 - }) 27 - ]; 28 - 29 propagatedBuildInputs = [ 30 - mock 31 twisted 32 pyopenssl 33 - service-identity 34 - ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 - ]; 39 - 40 - disabledTestPaths = [ 41 - # Not all dependencies are present 42 - "src/foolscap/test/test_connection.py" 43 - ]; 44 45 pythonImportsCheck = [ "foolscap" ]; 46
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 , mock 5 , pyopenssl 6 , pytestCheckHook 7 + , pythonOlder 8 , service-identity 9 + , six 10 , twisted 11 + , txi2p-tahoe 12 + , txtorcon 13 }: 14 15 buildPythonPackage rec { 16 pname = "foolscap"; 17 + version = "23.3.0"; 18 + 19 + disabled = pythonOlder "3.7"; 20 + 21 + format = "setuptools"; 22 23 src = fetchPypi { 24 inherit pname version; 25 + hash = "sha256-Vu7oXC1brsgBwr2q59TAgx8j1AFRbi5mjRNIWZTbkUU="; 26 }; 27 28 propagatedBuildInputs = [ 29 + six 30 twisted 31 pyopenssl 32 + ] ++ twisted.optional-dependencies.tls; 33 + 34 + passthru.optional-dependencies = { 35 + i2p = [ txi2p-tahoe ]; 36 + tor = [ txtorcon ]; 37 + }; 38 39 nativeCheckInputs = [ 40 + mock 41 pytestCheckHook 42 + ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); 43 44 pythonImportsCheck = [ "foolscap" ]; 45