Files
nixpkgs/pkgs/development/python-modules/iso3166/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

35 lines
799 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "iso3166";
version = "2.1.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "deactivated";
repo = "python-iso3166";
tag = "v${version}";
hash = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "iso3166" ];
meta = {
description = "Self-contained ISO 3166-1 country definitions";
homepage = "https://github.com/deactivated/python-iso3166";
changelog = "https://github.com/deactivated/python-iso3166/blob/v${version}/CHANGES";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ zraexy ];
};
}