summary refs log tree commit diff
path: root/pkgs/development/python-modules/overpy/default.nix
blob: bd50ddb502b6f109b4c244a0c5e068fc02c0f6f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "overpy";
  version = "0.6";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "DinoTools";
    repo = "python-overpy";
    rev = version;
    hash = "sha256-Tl+tzxnPASL4J6D/BYCEWhXe/mI12OVgNT5lyby3s7A=";
  };

  patches = [
    (fetchpatch {
      # Remove pytest-runner
      url = "https://patch-diff.githubusercontent.com/raw/DinoTools/python-overpy/pull/104.patch";
      hash = "sha256-ScS0vd2P+wyQGyCQV6/4cUcqoQ+S07tGpEovuz9oBMw=";
    })
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "overpy"
  ];

  meta = with lib; {
    description = "Python Wrapper to access the Overpass API";
    homepage = "https://github.com/DinoTools/python-overpy";
    license = licenses.mit;
    maintainers = with maintainers; [ firefly-cpp ];
  };
}