From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aJXJMwuuqmDxGQEAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 21:33:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YGuHLwuuqmDEDwAAB5/wlQ (envelope-from ) for ; Sun, 23 May 2021 19:33:31 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C801C11592 for ; Sun, 23 May 2021 21:33:30 +0200 (CEST) Received: from localhost ([::1]:55200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lktqr-00053q-Rt for larch@yhetil.org; Sun, 23 May 2021 15:33:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lktqQ-0004tr-Mq for guix-patches@gnu.org; Sun, 23 May 2021 15:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lktqQ-0008N5-HN for guix-patches@gnu.org; Sun, 23 May 2021 15:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lktqQ-0003GT-En for guix-patches@gnu.org; Sun, 23 May 2021 15:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48614] [PATCH 3/3] gnu: Add python-cartopy. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 23 May 2021 19:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48614 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48614@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 48614-submit@debbugs.gnu.org id=B48614.162179833012477 (code B ref 48614); Sun, 23 May 2021 19:33:02 +0000 Received: (at 48614) by debbugs.gnu.org; 23 May 2021 19:32:10 +0000 Received: from localhost ([127.0.0.1]:41783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lktpa-0003F6-3D for submit@debbugs.gnu.org; Sun, 23 May 2021 15:32:10 -0400 Received: from mout01.posteo.de ([185.67.36.65]:41327) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lktpW-0003E7-0s for 48614@debbugs.gnu.org; Sun, 23 May 2021 15:32:06 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 75CF4240027 for <48614@debbugs.gnu.org>; Sun, 23 May 2021 21:32:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1621798320; bh=bJlkgyezgGYqrlyaOqcw2fp1FfD6RIORxRDx7UHRRVc=; h=From:To:Cc:Subject:Date:From; b=ZeGyJJ4ENdjQL0uLEsr07LPDK2maFfF7duKyklSlI+KDzfnwTslxJ53r2+6dxbHnS SEevbucumma/HC5ntpvp8wYQNym8d//zXemvOOUm8Spvimt6WnstanQrjr90kb1sBF Wy+VzK9kKcJWlofJwniAwK4vkJuy0/uD6QHeqWCKQbq6vE1TtgeafLOpiqVjDraEco JS0l9q9IhRXXaIxflcjRD6yo2Wld0S1WqfM/zSGPPsEZhGmIPpykbTHp2gSCXerPvY X7jiU83KaNiO/7ox7wL1E+2S9KvDi8INqEyWXw2H61VfTnlxJJn0znxpN5Kv1dkVFH zOEhsJenRkxNw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fp9TB3Xxvz6tmB; Sun, 23 May 2021 21:31:58 +0200 (CEST) From: Vinicius Monego Date: Sun, 23 May 2021 19:31:33 +0000 Message-Id: <20210523193134.425937-3-monego@posteo.net> In-Reply-To: <20210523193134.425937-1-monego@posteo.net> References: <20210523193134.425937-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621798411; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TOfHc5vrLa5w01P2P6KYii3Ms7MBlv49YxevWQSX4hg=; b=KPuguH0wlWPkoL1xEe3JE1cHhXD0DOVEcO4B72zk8MW6mzAnxZ2cDQ2vWtqcYwFqZQdZZq Hxe6XQCZdDS2qadYahbBSA0tuHqHXt05jNgui1uVJ73yFiqKw0e8ec92/AH7HhWbg/lOWv cp6Kfzv0Rm4/UyJK8IjFAZPizf8qT6gKcch3/gsy1P7soTQ8Xw3vCcxJ4HF0jLqyj3W3Tp /4pugnU5qXqVzZyVpyTX6+6c715e/7qjnJ3hAn+JuJa/Wwg53qv9wAjLE5ROW8Qr10r85Z 6rV6ejHCj7REQ+QQdisfk0FkpD92flk7SugpyU/HBmauP056RDmW1jbl+L6N8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621798411; a=rsa-sha256; cv=none; b=Np29eMTbqmKrXucimejy4BOoHmekeqlq/RuaxmM+A4wpe836thVQVIHM1/KRGgzwBMaPs9 A96VpbKFGcLiXuzcE/Joqs/MUton/ZgYymgt2m2RqVdliTxFz70MfpOQJbkdCjVdRwhNMe tRxDsTPk6R/QDIkQWvKLbnHqFQVUnPAM3ulyxlmt6pI3Q573GGNOZ60XxP5JQe5HZl08WF /dps1CswQWXbthc6ejZaPccZvD3r6MviCpLoO5TQWUQXaibPktHwuBMXo4I+k0srg4KftN PQbh6Fa5PgfGwoNEvVGSG35rK24S3FwoxeyngdKhHxiRSfvFDju2cf4ekfsZsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=ZeGyJJ4E; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=ZeGyJJ4E; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C801C11592 X-Spam-Score: 3.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: ViURSMLBN+cR * gnu/packages/python-science.scm (python-cartopy): New variable. --- gnu/packages/python-science.scm | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 79ee7c8bb2..9d4edaa4df 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -33,6 +33,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages check) #:use-module (gnu packages gcc) + #:use-module (gnu packages geo) #:use-module (gnu packages maths) #:use-module (gnu packages perl) #:use-module (gnu packages python) @@ -208,6 +209,61 @@ depends on @code{scipy.weave}. For new code, users are recommended to use Cython.") (license license:bsd-3))) +(define-public python-cartopy + (package + (name "python-cartopy") + (version "0.19.0.post1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Cartopy" version)) + (sha256 + (base32 "0xnm8z3as3hriivdfd26s6vn5b63gb46x6vxw6gh1mwfm5rlg2sb")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "--pyargs" "cartopy" + ;; These tests require online data. + "-m" "not natural_earth and not network" + ;; This one too but it's not marked as such. + "-k" "not test_gridliner_labels_bbox_style"))))))) + (propagated-inputs + `(("python-matplotlib" ,python-matplotlib) + ("python-numpy" ,python-numpy) + ("python-pykdtree" ,python-pykdtree) + ("python-pyshp" ,python-pyshp) + ("python-scipy" ,python-scipy) + ("python-shapely" ,python-shapely))) + (inputs + `(("geos" ,geos) + ("proj" ,proj))) + (native-inputs + `(("python-cython" ,python-cython) + ("python-flufl-lock" ,python-flufl-lock) + ("python-pytest" ,python-pytest))) + (home-page "https://scitools.org.uk/cartopy/docs/latest/") + (synopsis "Cartographic library for visualisation") + (description + "Cartopy is a Python package designed to make drawing maps for data +analysis and visualisation easy. + +It features: + +@itemize +@item object oriented projection definitions +@item point, line, polygon and image transformations between projections +@item integration to expose advanced mapping in Matplotlib with a simple and +intuitive interface +@item powerful vector data handling by integrating shapefile reading with +Shapely capabilities +@end itemize") + (license license:lgpl3+))) + (define-public python-scikit-fuzzy (package (name "python-scikit-fuzzy") -- 2.31.1