1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pythonAtLeast 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "dugong"; 11 version = "3.8.1"; 12 disabled = pythonOlder "3.3"; 13 14 src = fetchFromGitHub { 15 owner = "python-dugong"; 16 repo = "python-dugong"; 17 rev = "release-${version}"; 18 sha256 = "1063c1779idc5nrjzfv5w1xqvyy3crapb2a2xll9y6xphxclnkjc"; 19 }; 20 21 checkInputs = [ 22 pytestCheckHook 23 ]; 24 25 # Lots of tests hang during teardown with: 26 # ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396) 27 doCheck = pythonOlder "3.10"; 28 29 pythonImportsCheck = [ "dugong" ]; 30 31 meta = with lib; { 32 description = "HTTP 1.1 client designed for REST-ful APIs"; 33 homepage = "https://github.com/python-dugong/python-dugong/"; 34 license = with licenses; [ psfl asl20 ]; 35 maintainers = with maintainers; [ ]; 36 }; 37}