blob: 8e4ee9ab6d95ac5c176b370237b6580154c346c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "country-list";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bulv1ne";
repo = "country_list";
tag = "v${version}";
hash = "sha256-jG2AC8c6mgWjHVBX7XW021PLPliLTwEBkN6+HSecfL4=";
fetchSubmodules = true;
};
build-system = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests.py"
];
pythonImportsCheck = [
"country_list"
];
meta = {
description = "List of all countries with names and ISO 3166-1 codes in all languages";
homepage = "https://github.com/bulv1ne/country_list";
changelog = "https://github.com/bulv1ne/country_list/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ urbas ];
};
}
|