python39Packages.geoip2: switch to pytestCheckHook
This commit is contained in:
parent
ecce29eba2
commit
8c36da303e
@ -1,15 +1,16 @@
|
|||||||
{ buildPythonPackage, lib, fetchPypi, isPy27
|
{ buildPythonPackage, lib, fetchPypi, pythonOlder
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, maxminddb
|
, maxminddb
|
||||||
, mocket
|
, mocket
|
||||||
, requests
|
, requests
|
||||||
, requests-mock
|
, requests-mock
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "4.1.0";
|
version = "4.1.0";
|
||||||
pname = "geoip2";
|
pname = "geoip2";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -22,11 +23,17 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ aiohttp requests maxminddb ];
|
propagatedBuildInputs = [ aiohttp requests maxminddb ];
|
||||||
|
|
||||||
checkInputs = [ mocket requests-mock ];
|
checkInputs = [
|
||||||
|
mocket
|
||||||
|
requests-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "geoip2" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "MaxMind GeoIP2 API";
|
description = "Python client for GeoIP2 webservice client and database reader";
|
||||||
homepage = "https://www.maxmind.com/en/home";
|
homepage = "https://github.com/maxmind/GeoIP2-python";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user