1{ lib 2, buildPythonPackage 3, fetchPypi 4, six 5, flake8 6, nose 7}: 8 9buildPythonPackage rec { 10 pname = "polyline"; 11 version = "1.4.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "0x60lm3ccq9zrcqlzyk041xgr1mi0k9lzyyv3cbbdiq9kb88jzvw"; 16 }; 17 18 propagatedBuildInputs = [ six ]; 19 checkInputs = [ flake8 nose ]; 20 checkPhase = '' 21 nosetests 22 ''; 23 24 meta = with lib; { 25 homepage = "https://github.com/hicsail/polyline"; 26 license = licenses.mit; 27 description = "Python implementation of Google's Encoded Polyline Algorithm Format."; 28 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."; 29 maintainers = with maintainers; [ ersin ]; 30 }; 31}