nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromCodeberg,
5 pytest-mock,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage (finalAttrs: {
11 pname = "countryguess";
12 version = "0.4.9";
13 pyproject = true;
14
15 src = fetchFromCodeberg {
16 owner = "plotski";
17 repo = "countryguess";
18 tag = "v${finalAttrs.version}";
19 hash = "sha256-RlOOao6aU3MylghDyOeg3poYQw+0UhljN79/ZBLjq24=";
20 };
21
22 build-system = [
23 setuptools
24 ];
25
26 nativeCheckInputs = [
27 pytest-mock
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [ "countryguess" ];
32
33 meta = {
34 description = "Fuzzy lookup of country information";
35 homepage = "https://codeberg.org/plotski/countryguess";
36 license = lib.licenses.gpl3Plus;
37 maintainers = with lib.maintainers; [ ambroisie ];
38 };
39})