From ca6bbbb740f432a9348a3bcba341a39de51cf7af Mon Sep 17 00:00:00 2001 From: Ersin Akinci Date: Sat, 7 Dec 2019 00:26:13 +0000 Subject: [PATCH] pythonPackages.mapbox: init at 0.18.0 --- .../python-modules/mapbox/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/mapbox/default.nix diff --git a/pkgs/development/python-modules/mapbox/default.nix b/pkgs/development/python-modules/mapbox/default.nix new file mode 100644 index 000000000000..1eec58919d5c --- /dev/null +++ b/pkgs/development/python-modules/mapbox/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, boto3 +, cachecontrol +, fetchFromGitHub +, iso3166 +, python-dateutil +, requests +, responses +, polyline +, pytestCheckHook +, uritemplate +}: + +buildPythonPackage rec { + pname = "mapbox"; + version = "0.18.0"; + + src = fetchFromGitHub { + owner = "mapbox"; + repo = "mapbox-sdk-py"; + rev = "0.18.0"; + sha256 = "123wsa4j11ps5pkjgylbmw4gnzh2vi22swgmvy50w26glkszh075"; + }; + + propagatedBuildInputs = [ boto3 cachecontrol iso3166 python-dateutil requests polyline uritemplate ]; + checkInputs = [ pytestCheckHook responses ]; + + meta = with lib; { + homepage = https://github.com/mapbox/mapbox-sdk-py; + license = licenses.mit; + description = "Mapbox SDK for Python"; + longDescription = "Low-level client API for Mapbox web services."; + maintainers = with maintainers; [ ersin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 71cdc25aa71c..afe689167ac5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -793,6 +793,8 @@ in { manhole = callPackage ../development/python-modules/manhole { }; + mapbox = callPackage ../development/python-modules/mapbox { }; + markerlib = callPackage ../development/python-modules/markerlib { }; matchpy = callPackage ../development/python-modules/matchpy { };