From patchwork Thu Jun 13 15:06:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre Langlois X-Patchwork-Id: 14305 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7203F170CC; Thu, 13 Jun 2019 17:21:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 00A01170CA for ; Thu, 13 Jun 2019 17:21:34 +0100 (BST) Received: from localhost ([::1]:41408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbSTl-00040t-KR for patchwork@mira.cbaines.net; Thu, 13 Jun 2019 12:21:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52941) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbROZ-0005JL-RL for guix-patches@gnu.org; Thu, 13 Jun 2019 11:12:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbROX-0006KQ-SD for guix-patches@gnu.org; Thu, 13 Jun 2019 11:12:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbROT-0006Gp-Tf for guix-patches@gnu.org; Thu, 13 Jun 2019 11:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hbROT-0004Kk-Nu for guix-patches@gnu.org; Thu, 13 Jun 2019 11:12:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36194] [PATCH 05/10] gnu: Add python-leather. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Jun 2019 15:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36194 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36194@debbugs.gnu.org Received: via spool by 36194-submit@debbugs.gnu.org id=B36194.156043871116635 (code B ref 36194); Thu, 13 Jun 2019 15:12:01 +0000 Received: (at 36194) by debbugs.gnu.org; 13 Jun 2019 15:11:51 +0000 Received: from localhost ([127.0.0.1]:35877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbROJ-0004KD-1f for submit@debbugs.gnu.org; Thu, 13 Jun 2019 11:11:51 -0400 Received: from mout.gmx.net ([212.227.15.18]:37091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbROG-0004Jm-QT for 36194@debbugs.gnu.org; Thu, 13 Jun 2019 11:11:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1560438699; bh=c9fqQ2Jei+RjUyoeNs5whj9oaz2QuPW6db83YsvApiE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=LEvHdSpG3SYadybqOyu0t0h0igGn1tP2YCS1t7dJPbLYMhABhKTNPCxVzRnr0JN9+ NpX3gXPs80EMQ3Ch0lY4vaXnz+MC2ibbXxE2kX17KB/a52KJR1r5XRMBzZTgfXPSYz 6hmUIrqWMVkvIuqQkrinSmq/k+YqkxT5aco9yvIg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere.lan ([92.6.238.228]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MCsPy-1hkCja1Day-008nvt; Thu, 13 Jun 2019 17:06:34 +0200 From: Pierre Langlois Date: Thu, 13 Jun 2019 16:06:23 +0100 Message-Id: <20190613150627.1882-5-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190613150627.1882-1-pierre.langlois@gmx.com> References: <20190613150126.17280-1-pierre.langlois@gmx.com> <20190613150627.1882-1-pierre.langlois@gmx.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:ysMe0u9eA1ivJWoiiNS6ScC6tDxB5iHhZat+EsTHKARZy1viscL TP9isMumgoMLKcT67rsDKEFBujNJpUN82RtJS1nCMwKAqSgy05DTwPaKFA4UBOEsJip1+iD 7m3oudZMtL23fjGdmguIkAHVTXvl00xfjvSP8WOiPgbeJ5iJQblv5OegvMuQgIBeIQnMCfA NNF0rTBWlljJhnAxypa8g== X-UI-Out-Filterresults: notjunk:1;V03:K0:oKJGFW/Bnxw=:xPLgZc8f163mqeK9cEqrez d5BvlXMUB8pkjWWUO7iFE+37pjqbkyrDVYlbqSGVRQGaEIiFsNHRR+wAqGpgoNG4AbWvuqkK1 x+Npuju5ZYTfkCDriHcEVRO0Sab89eHS1LUnTtSQ9Kh3VW6L/XWzoX3O/Z1wpLu1YaBBVgLQv bd73z0uoDaAd0lgRwYMsRMGK1+K/xZB4FRrGWbmU3S9If7Un2NmK0KZLRSg34rUjm8XsTEq5F FXljbLeigFe1siV9IlIQb4+qRKjS6cYYhgFicATf7BsbI5YvcFOxXMjZMIknwJIIvD4j1pIfo IeYNry4+mkTUD4rn/fJSx3aDCrThd0QQTWxjolvSehTbDQyIUPQ980e6QCtzpw82OhCNsi3N1 OTQ7pwuZZ+cDCiCVweEY4phxyQERrZC9pQVZKi8Gm0a4L2wAC1NYNSBTcBMMpozSKKik25zyK V9gVa8lke2vrw2HWiS/Gt60bt6KYrSFCupyM8x41VaVQWcz5Cuzo16jAAdj0oQM+kUToFMW7G tZcjhW3EuDM+evbXrfNxq74Fr1ki1A2U8VKLC/8JRqMuf9DjRiqldJGvYX/7JwIGmVUwk9p3U bjFZOI1lkxBmYdYodSKs4DOaFEnfjgfvTi21UCQ2G8O8D/Wi4PS/AYShZfbisnjqWDRAi8deD Rx5g8x9zZWLroftPuxn3PFKRLEfwWh6QA3GXyi9T4i2pjDJH3ODWMlER93O1zAck0SII8DQKQ mas5QxdW15TImiVF1AdQPsxk70e31jpHRfTcpc9WrmxcxNwjs/eZUU8zG3Wo7Iz0xkk788CBU F8hfSIuPtZM4fqHiZZADZ1Nc4ZGuQrA+57T74uiRpXtXL4oNmLKygM0in5hWZFWo06MBiqCBk N2dF1S1PUG5PWegoZ+/39Y8AMvEPPXFMxoxGLBM/TL/U50xoRYUutvX1oXdI8ryBVowVnhKpK yCaykGkweIw411jrdDYn3fvHJtcY8mMUpfLr6/89iAave1e4S0/ss X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/wireservice.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/wireservice.scm | 91 ++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 gnu/packages/wireservice.scm -- 2.22.0 diff --git a/gnu/local.mk b/gnu/local.mk index f8c33dd8c2..e9e5009276 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -485,6 +485,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/wget.scm \ %D%/packages/wicd.scm \ %D%/packages/wine.scm \ + %D%/packages/wireservice.scm \ %D%/packages/wm.scm \ %D%/packages/wordnet.scm \ %D%/packages/wv.scm \ diff --git a/gnu/packages/wireservice.scm b/gnu/packages/wireservice.scm new file mode 100644 index 0000000000..290b027e7b --- /dev/null +++ b/gnu/packages/wireservice.scm @@ -0,0 +1,91 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 Pierre Langlois +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages wireservice) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system python) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (gnu packages) + #:use-module (gnu packages check) + #:use-module (gnu packages python-web) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages sphinx)) + +;; Base package definition for packages from https://github.com/wireservice. +;; This is done so we can share how to run tests and build documentation. +(define base-package + (package + (name #f) + (version #f) + (source #f) + (home-page #f) + (synopsis #f) + (description #f) + (build-system python-build-system) + (native-inputs + `(("python-nose" ,python-nose) + ("python-sphinx" ,python-sphinx) + ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "nosetests" "tests"))) + (add-after 'install 'install-docs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/" + ,(package-name this-package) + "-" + ,(package-version this-package)))) + (with-directory-excursion "docs" + (for-each + (lambda (target) + (invoke "make" target) + (copy-recursively (string-append "_build/" target) + (string-append doc "/" target))) + '("html" "dirhtml" "singlehtml" "text"))) + #t)))))) + (license license:expat))) + +(define-public python-leather + (package + (inherit base-package) + (name "python-leather") + (version "0.3.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wireservice/leather.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ck3dplni99sv4s117cbm07ydwwjsrxkhdy19rnk0iglia1d4s5i")))) + (native-inputs + `(("python-cssselect" ,python-cssselect) + ("python-lxml" ,python-lxml) + ,@(package-native-inputs base-package))) + (propagated-inputs + `(("python-six" ,python-six))) + (home-page "https://leather.rtfd.org") + (synopsis "Python charting for 80% of humans") + (description "Leather is a Python charting library for those who need +charts now and don't care if they're perfect.")))