Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Guix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
inf
Guix
Commits
84ef83dd
Commit
84ef83dd
authored
10 years ago
by
Andreas Enge
Browse files
Options
Downloads
Patches
Plain Diff
gnu: Add python-sip.
* gnu/packages/qt.scm (python.sip, python2-sip): New variables.
parent
17a7b75c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gnu/packages/qt.scm
+64
-2
64 additions, 2 deletions
gnu/packages/qt.scm
with
64 additions
and
2 deletions
gnu/packages/qt.scm
+
64
−
2
View file @
84ef83dd
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2013, 2014
, 2015
Andreas Enge <andreas@enge.fr>
;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
;;;
;;; This file is part of GNU Guix.
...
...
@@ -18,11 +18,13 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(
define-module
(
gnu
packages
qt
)
#
:use-module
((
guix
licenses
)
#
:select
(
lgpl2
.
1
x11-style
))
#
:use-module
((
guix
licenses
)
#
:select
(
gpl3
lgpl2
.
1
x11-style
))
#
:use-module
(
guix
packages
)
#
:use-module
(
guix
download
)
#
:use-module
(
guix
build
utils
)
#
:use-module
(
guix
build-system
gnu
)
#
:use-module
(
guix
packages
)
#
:use-module
(
guix
utils
)
#
:use-module
(
gnu
packages
)
#
:use-module
(
gnu
packages
bison
)
#
:use-module
(
gnu
packages
compression
)
...
...
@@ -272,3 +274,63 @@ (define-public qt-4
"-no-avx"
"-no-neon"
))))
%standard-phases
)))))
(
define-public
python-sip
(
package
(
name
"python-sip"
)
(
version
"4.16.5"
)
(
source
(
origin
(
method
url-fetch
)
(
uri
(
string-append
"mirror://sourceforge/pyqt/sip/"
"sip-"
version
"/sip-"
version
".tar.gz"
))
(
sha256
(
base32
"11qy1z88py2q7rz68rm7214pbd37538hpcbfj5hhzp5y616a62x0"
))))
(
build-system
gnu-build-system
)
(
native-inputs
`
((
"python"
,
python-wrapper
)))
(
arguments
`
(
#
:tests?
#f
; no check target
#
:phases
(
alist-replace
'configure
(
lambda*
(
#
:key
inputs
outputs
#
:allow-other-keys
)
(
let*
((
out
(
assoc-ref
outputs
"out"
))
(
bin
(
string-append
out
"/bin"
))
(
include
(
string-append
out
"/include"
))
(
python-version
(
string-take
(
string-take-right
(
assoc-ref
inputs
"python"
)
5
)
3
))
(
lib
(
string-append
out
"/lib/python"
python-version
"/site-packages"
)))
(
zero?
(
system*
"python"
"configure.py"
"--bindir"
bin
"--destdir"
lib
"--incdir"
include
))))
%standard-phases
)))
(
home-page
"http://www.riverbankcomputing.com/software/sip/intro"
)
(
synopsis
"Python binding creator for C and C++ libraries"
)
(
description
"SIP is a tool to create Python bindings for C and C++ libraries. It
was originally developed to create PyQt, the Python bindings for the Qt
toolkit, but can be used to create bindings for any C or C++ library.
SIP comprises a code generator and a Python module. The code generator
processes a set of specification files and generates C or C++ code, which
is then compiled to create the bindings extension module. The SIP Python
module provides support functions to the automatically generated code."
)
;; There is a choice between a python like license, gpl2 and gpl3.
;; For compatibility with pyqt, we need gpl3.
(
license
gpl3
)))
(
define-public
python2-sip
(
package
(
inherit
python-sip
)
(
name
"python2-sip"
)
(
native-inputs
`
((
"python"
,
python-2
)))))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment