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