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