python3packages.countryinfo: init at 1.0.0
This commit is contained in:
@@ -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"
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user