From 9aae1cd7102c5e4f041d91924ecb52b874c58a3d Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Wed, 16 Oct 2024 14:39:08 +0200 Subject: [PATCH 1/2] maintainers: add itepastra --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 5b2f39708c7e..813ba5671483 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9330,6 +9330,13 @@ github = "istoph"; githubId = 114227790; }; + itepastra = { + name = "Noa Aarts"; + github = "itepastra"; + githubId = 27058689; + email = "itepastra@gmail.com"; + keys = [ { fingerprint = "E681 4CAF 06AE B076 D55D 3E32 A16C DCBF 1472 541F"; } ]; + }; ius = { email = "j.de.gram@gmail.com"; name = "Joerie de Gram"; From bd2cb9dcfb2dcbe99ab8cdf00470bbe3a446c852 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Mon, 21 Oct 2024 21:50:33 +0200 Subject: [PATCH 2/2] pythonPackages.world-bank-data: init at 0.1.4 --- .../world-bank-data/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/world-bank-data/default.nix diff --git a/pkgs/development/python-modules/world-bank-data/default.nix b/pkgs/development/python-modules/world-bank-data/default.nix new file mode 100644 index 000000000000..b5d02b034b27 --- /dev/null +++ b/pkgs/development/python-modules/world-bank-data/default.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + cachetools, + pandas, + requests, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "world-bank-data"; + version = "0.1.4"; + pyproject = true; + + src = fetchPypi { + pname = "world_bank_data"; + inherit version; + hash = "sha256-UidtJovurzrZKWeI7n1bV0vluc5pSg92zKFELvZE9fw="; + }; + + build-system = [ + hatchling + ]; + + dependencies = [ + cachetools + pandas + requests + ]; + + # Tests require a HTTP connection + doCheck = false; + + pythonImportsCheck = [ + "world_bank_data" + ]; + + meta = { + description = "World Bank Data API in Python"; + homepage = "https://github.com/mwouts/world_bank_data"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ itepastra ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 842de0d5ae7c..28cf77c66974 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17541,6 +17541,8 @@ self: super: with self; { wordfreq = callPackage ../development/python-modules/wordfreq { }; + world-bank-data = callPackage ../development/python-modules/world-bank-data { }; + worldengine = callPackage ../development/python-modules/worldengine { }; wrapio = callPackage ../development/python-modules/wrapio { };