Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
3c4e0a2b
Unverified
Commit
3c4e0a2b
authored
5 years ago
by
prspkt
Browse files
Options
Downloads
Patches
Plain Diff
community/py-josepy: drop python2
Signed-off-by:
prspkt
<
prspkt@protonmail.com
>
parent
e617a1e6
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community/py3-josepy/APKBUILD
+31
-0
31 additions, 0 deletions
community/py3-josepy/APKBUILD
with
31 additions
and
0 deletions
community/py-josepy/APKBUILD
→
community/py
3
-josepy/APKBUILD
+
31
−
0
View file @
3c4e0a2b
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname
=
py-josepy
pkgname
=
py
3
-josepy
_pkgname
=
josepy
pkgver
=
1.2.0
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"JOSE protocol implementation in Python"
url
=
"https://github.com/jezdez/josepy"
arch
=
"noarch"
license
=
"Apache-2.0"
depends
=
"py-six py-mock py-cryptography py-setuptools py-openssl"
makedepends
=
"python2-dev python3-dev libffi-dev"
subpackages
=
"py2-
${
pkgname
#py-
}
:_py2 py3-
${
pkgname
#py-
}
:_py3"
source
=
"
$_pkgname
-
$pkgver
.tar.gz::https://github.com/certbot/
$_pkgname
/archive/v
$pkgver
.tar.gz"
depends
=
"py3-cryptography py3-openssl py3-setuptools py3-six"
makedepends
=
"libffi-dev python3-dev"
source
=
"
$_pkgname
-
$pkgver
.tar.gz::https://github.com/certbot/josepy/archive/v
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/
$_pkgname
-
$pkgver
"
replaces
=
py-josepy
# Backwards compatibility
provides
=
py-josepy
=
$pkgver
-r
$pkgrel
# Backwards compatibility
build
()
{
cd
"
$builddir
"
python2 setup.py build
python3 setup.py build
}
check
()
{
cd
"
$builddir
"
python2 setup.py check
python3 setup.py check
}
package
()
{
mkdir
-p
"
$pkgdir
"
}
_py2
()
{
depends
=
"
${
depends
//py-/py2-
}
"
_py python2
mv
"
$subpkgdir
"
/usr/bin/jws
"
$subpkgdir
"
/usr/bin/jws-2
python3 setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
}
_py3
()
{
depends
=
"
${
depends
//py-/py3-
}
"
_py python3
}
_py
()
{
local
python
=
"
$1
"
pkgdesc
=
"
$pkgdesc
(for
$python
)"
depends
=
"
$depends
$python
"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
$python
setup.py
install
--prefix
=
/usr
--root
=
"
$subpkgdir
"
}
sha512sums
=
"25a360b3893e1c1c524440b02e0af66c6dfefd756cebdad1c27ae8a82461200448a9c8fc835747e160cbcbb63261a4f79d7765eaae5e0b19feea5bf84d5e8896 josepy-1.2.0.tar.gz"
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