python3packages.countryinfo: init at 1.0.0

This commit is contained in:
Ciznia
2025-11-18 13:47:27 +01:00
parent e50c24bedb
commit 18b3c4cdcc
3 changed files with 58 additions and 0 deletions
@@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pydantic,
typer,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "countryinfo";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "porimol";
repo = "countryinfo";
tag = "v${version}";
hash = "sha256-Y4nJnjXg8raJx2f00DFMktdcWoLO09wqTFK6Fc8RKSI=";
};
build-system = [ poetry-core ];
patches = [ ./fix-pyproject-file.patch ];
dependencies = [
pydantic
typer
];
pythonRelaxDeps = [ "typer" ];
pythonImportsCheck = [ "countryinfo" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
homepage = "https://github.com/porimol/countryinfo";
description = "Data about countries, ISO info and states/provinces within them";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
cizniarova
];
};
}
@@ -0,0 +1,11 @@
diff --git a/pyproject.toml b/pyproject.toml
index f31c9e3..31fa9c8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,3 +1,6 @@
+[project]
+name = "countryinfo"
+
[tool.poetry]
name = "countryinfo"
version = "1.0.0"
+2
View File
@@ -3073,6 +3073,8 @@ self: super: with self; {
countryguess = callPackage ../development/python-modules/countryguess { };
countryinfo = callPackage ../development/python-modules/countryinfo { };
courlan = callPackage ../development/python-modules/courlan { };
coverage = callPackage ../development/python-modules/coverage { };