1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchpatch,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "overpy";
12 version = "0.6";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "DinoTools";
19 repo = "python-overpy";
20 rev = version;
21 hash = "sha256-Tl+tzxnPASL4J6D/BYCEWhXe/mI12OVgNT5lyby3s7A=";
22 };
23
24 patches = [
25 (fetchpatch {
26 # Remove pytest-runner
27 url = "https://patch-diff.githubusercontent.com/raw/DinoTools/python-overpy/pull/104.patch";
28 hash = "sha256-ScS0vd2P+wyQGyCQV6/4cUcqoQ+S07tGpEovuz9oBMw=";
29 })
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "overpy" ];
35
36 meta = with lib; {
37 description = "Python Wrapper to access the Overpass API";
38 homepage = "https://github.com/DinoTools/python-overpy";
39 license = licenses.mit;
40 maintainers = with maintainers; [ firefly-cpp ];
41 };
42}