python3Packages.countryinfo: clean-up

This commit is contained in:
Fabian Affolter
2026-05-09 01:05:36 +02:00
parent d2b349c2a4
commit 2bcfe88606
2 changed files with 10 additions and 23 deletions
@@ -4,10 +4,11 @@
fetchFromGitHub,
poetry-core,
pydantic,
typer,
pytestCheckHook,
typer,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "countryinfo";
version = "1.0.1";
pyproject = true;
@@ -15,31 +16,28 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "porimol";
repo = "countryinfo";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-PE9XiVH6XE+OSySL5Lo0MPWyIEX8xgeHQB7MttMfmz8=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [ "typer" ];
patches = [ ./fix-pyproject-file.patch ];
build-system = [ poetry-core ];
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";
homepage = "https://github.com/porimol/countryinfo";
changelog = "https://github.com/porimol/countryinfo/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
cizniarova
];
maintainers = with lib.maintainers; [ cizniarova ];
};
}
})
@@ -1,11 +0,0 @@
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"