python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / overpy / default.nix
blobad08945d95e3cce8dfdf9f093a177fb54e0a0e3e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
6   pytestCheckHook,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "overpy";
12   version = "0.6";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "DinoTools";
19     repo = "python-overpy";
20     rev = version;
21     hash = "sha256-Tl+tzxnPASL4J6D/BYCEWhXe/mI12OVgNT5lyby3s7A=";
22   };
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   ];
32   nativeCheckInputs = [ pytestCheckHook ];
34   pythonImportsCheck = [ "overpy" ];
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   };