mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
pythonPackages.polyline: init at 1.4.0
Add polyline Python package (needed to support Mapbox Python SDK).
This commit is contained in:
parent
ceb1e92173
commit
d8d0a32b25
31
pkgs/development/python-modules/polyline/default.nix
Normal file
31
pkgs/development/python-modules/polyline/default.nix
Normal file
@ -0,0 +1,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 ];
|
||||
};
|
||||
}
|
@ -912,6 +912,8 @@ in {
|
||||
|
||||
poetry = callPackage ../development/python-modules/poetry { };
|
||||
|
||||
polyline = callPackage ../development/python-modules/polyline { };
|
||||
|
||||
postorius = disabledIf (!isPy3k) (callPackage ../servers/mail/mailman/postorius.nix { });
|
||||
|
||||
pplpy = callPackage ../development/python-modules/pplpy { };
|
||||
|
Loading…
Reference in New Issue
Block a user