diff --git a/pkgs/development/python-modules/maxminddb/default.nix b/pkgs/development/python-modules/maxminddb/default.nix index 2e3e5d65e041..f0caf133c487 100644 --- a/pkgs/development/python-modules/maxminddb/default.nix +++ b/pkgs/development/python-modules/maxminddb/default.nix @@ -5,18 +5,25 @@ fetchPypi, libmaxminddb, pytestCheckHook, + setuptools-scm, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "maxminddb"; - version = "3.0.0"; - format = "setuptools"; + version = "3.1.1"; + pyproject = true; src = fetchPypi { - inherit pname version; - hash = "sha256-l5KxliWUXf8Ubi4xh/nkcLgjMKkS986lWBuL1a8w2os="; + inherit (finalAttrs) pname version; + hash = "sha256-sZqTjEgVGPGaLFNP/cs7xZWC8Pu9z5+BrJrfkSoK9oY="; }; + build-system = [ + setuptools + setuptools-scm + ]; + buildInputs = [ libmaxminddb ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -30,8 +37,8 @@ buildPythonPackage rec { meta = { 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"; + changelog = "https://github.com/maxmind/MaxMind-DB-Reader-python/blob/v${finalAttrs.version}/HISTORY.rst"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +})