From 4f1a6fde1474e91d97cdcac55f134c2aa92b1dbe Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Thu, 4 Jul 2019 08:27:15 -0700 Subject: [PATCH] pythonPackages.maxminddb: init at 1.4.1 --- .../python-modules/maxminddb/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/maxminddb/default.nix diff --git a/pkgs/development/python-modules/maxminddb/default.nix b/pkgs/development/python-modules/maxminddb/default.nix new file mode 100644 index 00000000000..c24823d1812 --- /dev/null +++ b/pkgs/development/python-modules/maxminddb/default.nix @@ -0,0 +1,26 @@ +{ buildPythonPackage, lib, fetchPypi +, ipaddress +, mock +, nose +}: + +buildPythonPackage rec { + version = "1.4.1"; + pname = "maxminddb"; + + src = fetchPypi { + inherit pname version; + sha256 = "04mpilsj76m29id5xfi8mmasdmh27ldn7r0dmh2rj6a8v2y5256z"; + }; + + propagatedBuildInputs = [ ipaddress ]; + + checkInputs = [ nose mock ]; + + meta = with lib; { + description = "Reader for the MaxMind DB format"; + homepage = "https://www.maxmind.com/en/home"; + license = licenses.apsl20; + maintainers = with maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d927073d72e..0b264cd759e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -546,6 +546,8 @@ in { matchpy = callPackage ../development/python-modules/matchpy { }; + maxminddb = callPackage ../development/python-modules/maxminddb { }; + monty = callPackage ../development/python-modules/monty { }; mininet-python = (toPythonModule (pkgs.mininet.override{ inherit python; })).py;