depot/third_party/nixpkgs/pkgs/development/python-modules/polyline/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

31 lines
853 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, flake8
, nose
}:
buildPythonPackage rec {
pname = "polyline";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "0x60lm3ccq9zrcqlzyk041xgr1mi0k9lzyyv3cbbdiq9kb88jzvw";
};
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ 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 ];
};
}