about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/polyline/default.nix
blob: f1dcd699527a7cc829b90f678930fb1cea1fd4db (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
{ lib
, buildPythonPackage
, fetchPypi
, six
, flake8
, nose
}:

buildPythonPackage rec {
  pname = "polyline";
  version = "1.4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0x60lm3ccq9zrcqlzyk041xgr1mi0k9lzyyv3cbbdiq9kb88jzvw";
  };

  propagatedBuildInputs = [ six ];
  checkInputs = [ flake8 nose ];
  checkPhase = ''
    nosetests
  '';

  meta = with lib; {
    homepage = "https://github.com/hicsail/polyline";
    license = licenses.mit;
    description = "Python implementation of Google's Encoded Polyline Algorithm Format.";
    longDescription = "polyline is a Python implementation of Google's Encoded Polyline Algorithm Format (http://goo.gl/PvXf8Y). It is essentially a port of https://github.com/mapbox/polyline built with Python 2 and 3 support in mind.";
    maintainers = with maintainers; [ ersin ];
  };
}