1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 requests,
7 responses,
8 setuptools,
9 xmltodict,
10}:
11
12buildPythonPackage rec {
13 pname = "osmapi";
14 version = "4.3.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "metaodi";
19 repo = "osmapi";
20 tag = "v${version}";
21 hash = "sha256-m1D+UtoULOKQ5+f/LNN11grp7vks2qEHDP345wahvXY=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ requests ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 responses
31 xmltodict
32 ];
33
34 pythonImportsCheck = [ "osmapi" ];
35
36 meta = {
37 description = "Python wrapper for the OSM API";
38 homepage = "https://github.com/metaodi/osmapi";
39 changelog = "https://github.com/metaodi/osmapi/blob/${src.tag}/CHANGELOG.md";
40 license = lib.licenses.gpl3Only;
41 maintainers = with lib.maintainers; [ sikmir ];
42 };
43}