From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 3/6] gnu: add python-selenium and python2-selenium Date: Thu, 21 Apr 2016 21:19:50 +0200 Message-ID: <1461266395-2731-4-git-send-email-h.goebel@crazy-compilers.com> References: <1461266395-2731-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atK8y-0003eZ-GG for guix-devel@gnu.org; Thu, 21 Apr 2016 15:20:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atK8x-0006Sr-Ci for guix-devel@gnu.org; Thu, 21 Apr 2016 15:20:04 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:37800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atK8x-0006Sm-6a for guix-devel@gnu.org; Thu, 21 Apr 2016 15:20:03 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qrT8y5jTBz3hnKk for ; Thu, 21 Apr 2016 21:20:02 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qrT8y5YxdzvkFH for ; Thu, 21 Apr 2016 21:20:02 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id G8hx9PsupgM8 for ; Thu, 21 Apr 2016 21:20:01 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-141-229.dynamic.mnet-online.de [188.174.141.229]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Thu, 21 Apr 2016 21:20:01 +0200 (CEST) Received: from thisbe.goebel-consult.de (unknown [192.168.110.30]) by hermia.goebel-consult.de (Postfix) with ESMTP id 165CD60762 for ; Thu, 21 Apr 2016 21:19:57 +0200 (CEST) In-Reply-To: <1461266395-2731-1-git-send-email-h.goebel@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/python.scm (python-selenium) (python2-selenium): New variables. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0241ed5..3c81a1f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8793,3 +8793,32 @@ provides support for parsing, splitting and formatting SQL statements.") (define-public python2-sqlparse (package-with-python2 python-sqlparse)) + +(define-public python-selenium + (package + (name "python-selenium") + (version "2.53.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "selenium" version)) + (sha256 + (base32 + "1pj0ci4dxwfa0pkvjc60k7pw74zy6ay473mnzckbb58jlhc994jk")))) + (build-system python-build-system) + ;; FIXME webdriver/firefox contains pre-build binaries. Build them in + ;; guix, but the source is not included. + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "http://www.seleniumhq.org/") + (synopsis "Python bindings for Selenium Webdriver") + (description "The @code{selenium} package is used automate web browser +interaction from Python. Several browsers/drivers are supported (Firefox, +Chrome, Internet Explorer, PhantomJS), as well as the Remote protocol. + +Primarily it is for automated testing of web applications, but can also used +for e.g. automating web-based administration tasks.") + (license asl2.0))) + +(define-public python2-selenium + (package-with-python2 python-selenium)) -- 2.7.4