From c1672895058a84d9f1e7724bf4cef42c1303affe Mon Sep 17 00:00:00 2001 From: Matej Urbas Date: Thu, 4 Dec 2025 06:36:18 +0000 Subject: [PATCH] python3Packages.country-list: init at 1.1.0 --- .../python-modules/country-list/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/country-list/default.nix diff --git a/pkgs/development/python-modules/country-list/default.nix b/pkgs/development/python-modules/country-list/default.nix new file mode 100644 index 000000000000..8e4ee9ab6d95 --- /dev/null +++ b/pkgs/development/python-modules/country-list/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + poetry-core, + + # tests + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "country-list"; + version = "1.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "bulv1ne"; + repo = "country_list"; + tag = "v${version}"; + hash = "sha256-jG2AC8c6mgWjHVBX7XW021PLPliLTwEBkN6+HSecfL4="; + fetchSubmodules = true; + }; + + build-system = [ + poetry-core + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ + "tests.py" + ]; + + pythonImportsCheck = [ + "country_list" + ]; + + meta = { + description = "List of all countries with names and ISO 3166-1 codes in all languages"; + homepage = "https://github.com/bulv1ne/country_list"; + changelog = "https://github.com/bulv1ne/country_list/blob/${src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ urbas ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4bbc973724f6..1affacb053db 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3136,6 +3136,8 @@ self: super: with self; { cot = callPackage ../development/python-modules/cot { inherit (pkgs) qemu; }; + country-list = callPackage ../development/python-modules/country-list { }; + countryguess = callPackage ../development/python-modules/countryguess { }; courlan = callPackage ../development/python-modules/courlan { };