1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "iso3166";
11 version = "2.1.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "deactivated";
18 repo = "python-iso3166";
19 tag = "v${version}";
20 hash = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "iso3166" ];
26
27 meta = with lib; {
28 description = "Self-contained ISO 3166-1 country definitions";
29 homepage = "https://github.com/deactivated/python-iso3166";
30 changelog = "https://github.com/deactivated/python-iso3166/blob/v${version}/CHANGES";
31 license = licenses.mit;
32 maintainers = with maintainers; [ zraexy ];
33 };
34}