at master 831 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "rfc6555"; 11 version = "0.1.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "sethmlarson"; 18 repo = "rfc6555"; 19 rev = "v${version}"; 20 hash = "sha256-Lmwgusc4EQlF0GHmMTUxWzUCjBk19cvurNwbOnT+1jM="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 disabledTests = [ 26 # Disabling tests that require a functional DNS IPv{4,6} stack to pass 27 "test_create_connection_has_proper_timeout" 28 ]; 29 30 pythonImportsCheck = [ "rfc6555" ]; 31 32 meta = with lib; { 33 description = "Python implementation of the Happy Eyeballs Algorithm"; 34 homepage = "https://github.com/sethmlarson/rfc6555"; 35 license = licenses.asl20; 36 maintainers = [ ]; 37 }; 38}