python3Packages.geventhttpclient: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-01-18 09:19:22 +01:00 committed by Martin Weinelt
parent 2240750ea6
commit 705414fcd5

View file

@ -1,23 +1,25 @@
{ lib { lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, backports_ssl_match_hostname
, brotli , brotli
, buildPythonPackage
, certifi , certifi
, gevent
, six
, dpkt , dpkt
, fetchPypi
, gevent
, pytestCheckHook , pytestCheckHook
, pythonOlder
, six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "geventhttpclient"; pname = "geventhttpclient";
version = "1.5.3"; version = "1.5.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "d80ec9ff42b7219f33558185499d0b4365597fc55ff886207b45f5632e099780"; hash = "sha256-2A7J/0K3IZ8zVYGFSZ0LQ2VZf8Vf+IYge0X1Yy4Jl4A=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -25,8 +27,6 @@ buildPythonPackage rec {
certifi certifi
gevent gevent
six six
] ++ lib.optionals (pythonOlder "3.7") [
backports_ssl_match_hostname
]; ];
checkInputs = [ checkInputs = [
@ -45,11 +45,14 @@ buildPythonPackage rec {
"test_multi_queries_greenlet_safe" "test_multi_queries_greenlet_safe"
]; ];
pythonImportsCheck = [
"geventhttpclient"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/gwik/geventhttpclient"; homepage = "https://github.com/gwik/geventhttpclient";
description = "HTTP client library for gevent"; description = "HTTP client library for gevent";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ koral ]; maintainers = with maintainers; [ koral ];
}; };
} }