diff options
Diffstat (limited to 'pkgs/development/python-modules/maxminddb/default.nix')
-rw-r--r-- | pkgs/development/python-modules/maxminddb/default.nix | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/maxminddb/default.nix b/pkgs/development/python-modules/maxminddb/default.nix index b9ff8bf437b..90acdef2d36 100644 --- a/pkgs/development/python-modules/maxminddb/default.nix +++ b/pkgs/development/python-modules/maxminddb/default.nix @@ -1,34 +1,40 @@ -{ stdenv -, lib +{ lib +, stdenv , buildPythonPackage -, pythonOlder -, pythonAtLeast , fetchPypi , libmaxminddb -, mock -, nose +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "maxminddb"; - version = "2.3.0"; - disabled = pythonOlder "3.6"; + version = "2.4.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-Egkg3d2VXzKuSMIHxs72/V3Ih0qIm6lLDywfc27N8wg="; + hash = "sha256-geVOU0CL1QJlDllpzLoWeAr2WewdscRLLJl+QzCl7ZY="; }; - buildInputs = [ libmaxminddb ]; + buildInputs = [ + libmaxminddb + ]; - nativeCheckInputs = [ nose mock ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - # Tests are broken for macOS on python38 - doCheck = !(stdenv.isDarwin && pythonAtLeast "3.8"); + pythonImportsCheck = [ + "maxminddb" + ]; meta = with lib; { description = "Reader for the MaxMind DB format"; homepage = "https://github.com/maxmind/MaxMind-DB-Reader-python"; + changelog = "https://github.com/maxmind/MaxMind-DB-Reader-python/blob/v${version}/HISTORY.rst"; license = licenses.asl20; maintainers = with maintainers; [ ]; }; |