mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
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
|
||||
, maxminddb
|
||||
, mocket
|
||||
, requests
|
||||
, requests-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.1.0";
|
||||
pname = "geoip2";
|
||||
disabled = isPy27;
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@ -22,11 +23,17 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ aiohttp requests maxminddb ];
|
||||
|
||||
checkInputs = [ mocket requests-mock ];
|
||||
checkInputs = [
|
||||
mocket
|
||||
requests-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "geoip2" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "MaxMind GeoIP2 API";
|
||||
homepage = "https://www.maxmind.com/en/home";
|
||||
description = "Python client for GeoIP2 webservice client and database reader";
|
||||
homepage = "https://github.com/maxmind/GeoIP2-python";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user