Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / iso3166 / default.nix
blobd166ea496fca8023af325d1f4f105b6e7f6754c6
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "iso3166";
10   version = "2.1.1";
11   format = "setuptools";
13   disabled = pythonOlder "3.6";
15   src = fetchFromGitHub {
16     owner = "deactivated";
17     repo = "python-iso3166";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0=";
20   };
22   nativeCheckInputs = [
23     pytestCheckHook
24   ];
26   pythonImportsCheck = [
27     "iso3166"
28   ];
30   meta = with lib; {
31     description = "Self-contained ISO 3166-1 country definitions";
32     homepage = "https://github.com/deactivated/python-iso3166";
33     changelog = "https://github.com/deactivated/python-iso3166/blob/v${version}/CHANGES";
34     license = licenses.mit;
35     maintainers = with maintainers; [ zraexy ];
36   };