blob: 5927b0c6cabe1f79d6076d4799960dc83613f1a9 (
plain)
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
46
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-cov-stub,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "polyline";
version = "2.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "frederickjansen";
repo = "polyline";
tag = "v${version}";
hash = "sha256-HUdjebUMcYGW+7dyOpVgBnBcesmqDWpw1NgYigOxmQ8=";
};
nativeBuildInputs = [
setuptools
wheel
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "polyline" ];
meta = {
description = "Python implementation of Google's Encoded Polyline Algorithm Format";
longDescription = ''
polyline is a Python implementation of Google's Encoded Polyline Algorithm Format. It is
essentially a port of https://github.com/mapbox/polyline.
'';
homepage = "https://github.com/frederickjansen/polyline";
changelog = "https://github.com/frederickjansen/polyline/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ersin ];
};
}
|