mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
38 lines
871 B
Nix
38 lines
871 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pythonAtLeast
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dugong";
|
|
version = "3.8.1";
|
|
disabled = pythonOlder "3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-dugong";
|
|
repo = "python-dugong";
|
|
rev = "release-${version}";
|
|
sha256 = "1063c1779idc5nrjzfv5w1xqvyy3crapb2a2xll9y6xphxclnkjc";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Lots of tests hang during teardown with:
|
|
# ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396)
|
|
doCheck = pythonOlder "3.10";
|
|
|
|
pythonImportsCheck = [ "dugong" ];
|
|
|
|
meta = with lib; {
|
|
description = "HTTP 1.1 client designed for REST-ful APIs";
|
|
homepage = "https://github.com/python-dugong/python-dugong/";
|
|
license = with licenses; [ psfl asl20 ];
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|