diff --git a/pkgs/development/python-modules/countryinfo/default.nix b/pkgs/development/python-modules/countryinfo/default.nix index 0db9aead3932..40d190b2003a 100644 --- a/pkgs/development/python-modules/countryinfo/default.nix +++ b/pkgs/development/python-modules/countryinfo/default.nix @@ -4,42 +4,40 @@ fetchFromGitHub, poetry-core, pydantic, - typer, pytestCheckHook, + typer, }: -buildPythonPackage rec { + +buildPythonPackage (finalAttrs: { pname = "countryinfo"; - version = "1.0.0"; + version = "1.0.1"; pyproject = true; src = fetchFromGitHub { owner = "porimol"; repo = "countryinfo"; - tag = "v${version}"; - hash = "sha256-Y4nJnjXg8raJx2f00DFMktdcWoLO09wqTFK6Fc8RKSI="; + 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 ]; }; -} +}) diff --git a/pkgs/development/python-modules/countryinfo/fix-pyproject-file.patch b/pkgs/development/python-modules/countryinfo/fix-pyproject-file.patch deleted file mode 100644 index a07a02b15d26..000000000000 --- a/pkgs/development/python-modules/countryinfo/fix-pyproject-file.patch +++ /dev/null @@ -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"