Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pydantic, pyprojectVersionPatchHook, pytestCheckHook, typer,}:
buildPythonPackage (finalAttrs: { pname = "countryinfo"; version = "1.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "porimol"; repo = "countryinfo"; tag = "v${finalAttrs.version}"; hash = "sha256-nd5KQdpQzRaPHwA2u8DCIWZEskODTkmG1r+piHvEEVo="; # fix for case-insensitive filesystems postFetch = '' cd "$out/countryinfo/data" cp curaçao.json "$TMPDIR/curacao.json" rm -f Curaçao.json curaçao.json cp "$TMPDIR/curacao.json" curaçao.json ''; };
pythonRelaxDeps = [ "typer" ];
build-system = [ poetry-core ];
dependencies = [ pydantic typer ];
nativeBuildInputs = [ pyprojectVersionPatchHook ];
pythonImportsCheck = [ "countryinfo" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = { 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 ]; };})