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