Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / overpy / default.nix
blob37abe95511176ee40a24aa6104c19fbbd7c033d3
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "overpy";
11   version = "0.6";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "DinoTools";
18     repo = "python-overpy";
19     rev = version;
20     hash = "sha256-Tl+tzxnPASL4J6D/BYCEWhXe/mI12OVgNT5lyby3s7A=";
21   };
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   ];
31   nativeCheckInputs = [
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [
36     "overpy"
37   ];
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   };