1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitea,
5 pytest-mock,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "countryguess";
12 version = "0.4.7";
13 pyproject = true;
14
15 src = fetchFromGitea {
16 domain = "codeberg.org";
17 owner = "plotski";
18 repo = "countryguess";
19 tag = "v${version}";
20 hash = "sha256-yZyEOFXwbaYAIDl6LoHkwoqlhVzqShY8ZXPasB6unQ8=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 nativeCheckInputs = [
28 pytest-mock
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "countryguess" ];
33
34 meta = {
35 description = "Fuzzy lookup of country information";
36 homepage = "https://codeberg.org/plotski/countryguess";
37 license = lib.licenses.gpl3Plus;
38 maintainers = with lib.maintainers; [ ambroisie ];
39 };
40}