1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pytest-cov-stub,
7 pythonOlder,
8 setuptools,
9 wheel,
10}:
11
12buildPythonPackage rec {
13 pname = "polyline";
14 version = "2.0.3";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "frederickjansen";
21 repo = "polyline";
22 tag = "v${version}";
23 hash = "sha256-HUdjebUMcYGW+7dyOpVgBnBcesmqDWpw1NgYigOxmQ8=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 wheel
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 pytest-cov-stub
34 ];
35
36 pythonImportsCheck = [ "polyline" ];
37
38 meta = with lib; {
39 description = "Python implementation of Google's Encoded Polyline Algorithm Format";
40 longDescription = ''
41 polyline is a Python implementation of Google's Encoded Polyline Algorithm Format. It is
42 essentially a port of https://github.com/mapbox/polyline.
43 '';
44 homepage = "https://github.com/frederickjansen/polyline";
45 changelog = "https://github.com/frederickjansen/polyline/releases/tag/${src.tag}";
46 license = licenses.mit;
47 maintainers = with maintainers; [ ersin ];
48 };
49}