libextractor-python

GNU libextractor
Log | Files | Refs | README | LICENSE

commit f0ea748da0ee2d9a768f03854f589bad594ef31c
parent 528d8dd9c2e2e7d533d51096064bf38490bb49b8
Author: Nils Gillmann <gillmann@infotropique.org>
Date:   Sat, 16 Jun 2018 11:44:26 +0000

+

Signed-off-by: Nils Gillmann <gillmann@infotropique.org>

Diffstat:
M.gitignore | 5+++--
AMakefile | 4++++
Aguix-env.scm | 76++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 83 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,3 +1,4 @@ *.egg *~ -\#*\# -\ No newline at end of file +\#*\# +*.pyc +\ No newline at end of file diff --git a/Makefile b/Makefile @@ -0,0 +1,4 @@ +default: guix-environment + +guix-environment: + guix environment -l guix-env.scm --pure diff --git a/guix-env.scm b/guix-env.scm @@ -0,0 +1,76 @@ +;;; This file is part of GNUnet. +;;; Copyright (C) 2016, 2017, 2018 GNUnet e.V. +;;; +;;; GNUnet is free software: you can redistribute it and/or modify it +;;; under the terms of the GNU Affero General Public License as published +;;; by the Free Software Foundation, either version 3 of the License, +;;; or (at your option) any later version. +;;; +;;; GNUnet 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 +;;; Affero General Public License for more details. +;;; +;;; You should have received a copy of the GNU Affero General Public License +;;; along with this program. If not, see <http://www.gnu.org/licenses/>. + +(use-modules + (ice-9 popen) + (ice-9 match) + (ice-9 rdelim) + (guix packages) + (guix build-system python) + (guix gexp) + ((guix build utils) #:select (with-directory-excursion)) + (guix git-download) + (guix utils) ; current-source-directory + (gnu packages) + (gnu packages gnunet) + (gnu packages python) + (gnu packages base) + (gnu packages version-control) + (gnu packages ssh) + ((guix licenses) #:prefix license:)) + +(define %source-dir (current-source-directory)) + +(define python-libextractor + (let* ((revision "1") + (select? (delay (or (git-predicate + (current-source-directory)) + source-file?)))) + (package + (name "python-libextractor") + (version (string-append "git" revision)) + (source + (local-file + (string-append (getcwd)) + #:recursive? #t)) + (build-system python-build-system) + (arguments + `(#:python ,python-2 + #:tests? #f)) + (propagated-inputs + `(("libextractor" ,libextractor))) + (home-page "https://github.com/docker/docker-py") + (synopsis "Python bindings for libextractor") + (description "Python bindings for libextractor") + (license #f)))) + +(define-public python2-libextractor + (package-with-python2 python-libextractor)) + +(package + (inherit python2-libextractor) + (name "python2-libextractor-hackenv") + (version "git") + (inputs + `(("coreutils" ,coreutils) + ("which" ,which) + ("git" ,git) + ,@(package-inputs python2-libextractor))) + (propagated-inputs + `(("python" ,python-2) + ("openssh" ,openssh) + ("git" ,git) + ,@(package-propagated-inputs python2-libextractor))))