dev-python/django-js-asset: new package, add 2.0

This commit is contained in:
Alarig Le Lay 2023-01-31 00:56:44 +01:00
parent dc1ca785c7
commit 3603af6fad
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST django-js-asset-2.0.gh.tar.gz 7386 BLAKE2B 5bebddc68a6d77b9ffc4c685cfcf0c34d03a82d1f24ea0bc64f35e70bf3a736fc8be612fba1e21bfbe1cb646363f06d0d001822209e15034cb03c337c80d24fd SHA512 0ec4954952394d90946d0653e86ecf45eb83ceaeb99bfde1eeed68f471110b85260abd7ae69f5b2c318e4341c09fd31efb781825d74164dc8ac6bd94bcb6f8e7

View file

@ -0,0 +1,30 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="script tag with additional attributes for django.forms.Media"
HOMEPAGE="https://github.com/matthiask/django-js-asset"
SRC_URI="
https://github.com/matthiask/django-js-asset/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-python/django-2.2[${PYTHON_USEDEP}]"
BDEPEND="test? ( ${RDEPEND} )"
python_test() {
cd tests || die
local -x DJANGO_SETTINGS_MODULE=testapp.settings
"${EPYTHON}" manage.py test -v 2 || die "Tests failed with ${EPYTHON}"
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="pypi">django-js-asset</remote-id>
</upstream>
</pkgmetadata>