depot/third_party/nixpkgs/pkgs/development/python-modules/polyline/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

31 lines
850 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, flake8
, nose
}:
buildPythonPackage rec {
pname = "polyline";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-FJK4/K3CFD+K7cZz08bZXfRRMfHGLrjVHIGDsk53FIY=";
};
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 ];
};
}