2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
2021-07-14 22:03:04 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dugong";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "3.8.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-dugong";
|
|
|
|
repo = "python-dugong";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "1063c1779idc5nrjzfv5w1xqvyy3crapb2a2xll9y6xphxclnkjc";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
# Lots of tests hang during teardown with:
|
|
|
|
# ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396)
|
|
|
|
doCheck = pythonOlder "3.10";
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
pythonImportsCheck = [ "dugong" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "HTTP 1.1 client designed for REST-ful APIs";
|
|
|
|
homepage = "https://github.com/python-dugong/python-dugong/";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
psfl
|
|
|
|
asl20
|
|
|
|
];
|
2021-07-14 22:03:04 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|