1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, requests
6, pytestCheckHook
7, responses
8}:
9
10buildPythonPackage rec {
11 pname = "herepy";
12 version = "3.6.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.5";
16
17 src = fetchFromGitHub {
18 owner = "abdullahselek";
19 repo = "HerePy";
20 rev = "refs/tags/${version}";
21 hash = "sha256-wz6agxPKQvWobRIiYKYU2og33tzswd0qG1hawPCh1qI=";
22 };
23
24 propagatedBuildInputs = [
25 requests
26 ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 responses
31 ];
32
33 pythonImportsCheck = [
34 "herepy"
35 ];
36
37 meta = with lib; {
38 description = "Library that provides a Python interface to the HERE APIs";
39 homepage = "https://github.com/abdullahselek/HerePy";
40 license = licenses.mit;
41 maintainers = with maintainers; [ dotlambda ];
42 };
43}