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