2021-07-09 20:24:28 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytestCheckHook
|
2021-10-31 13:14:14 +00:00
|
|
|
, pythonOlder
|
2021-07-09 20:24:28 +00:00
|
|
|
}:
|
2017-04-16 22:47:12 +00:00
|
|
|
|
2021-07-09 20:24:28 +00:00
|
|
|
buildPythonPackage rec {
|
2017-04-13 20:14:00 +00:00
|
|
|
pname = "iso3166";
|
2021-10-31 13:14:14 +00:00
|
|
|
version = "2.0.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-04-13 20:14:00 +00:00
|
|
|
|
2017-04-16 22:47:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deactivated";
|
|
|
|
repo = "python-iso3166";
|
2021-10-31 13:14:14 +00:00
|
|
|
rev = version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0=";
|
2017-04-13 20:14:00 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-09 20:24:28 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-04-16 22:47:12 +00:00
|
|
|
|
2021-10-31 13:14:14 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"iso3166"
|
|
|
|
];
|
2017-04-16 22:47:12 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-04-13 20:14:00 +00:00
|
|
|
description = "Self-contained ISO 3166-1 country definitions";
|
2021-10-31 13:14:14 +00:00
|
|
|
homepage = "https://github.com/deactivated/python-iso3166";
|
2017-04-13 20:14:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zraexy ];
|
|
|
|
};
|
|
|
|
}
|