dev-python/django-picklefield: new package, add 3.1

This commit is contained in:
Alarig Le Lay 2023-03-21 22:12:26 +01:00
parent 2b8b4c32d6
commit 8da2b17fbe
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST django-picklefield-3.1.tar.gz 9398 BLAKE2B 3c6fa6c7aa74a8ff79e85d408c4374b27d8face85c28f11f13c227f4d20699944b29d5e35d6e86412d27957266198e2ddc9f124878142b200cf3f6a89900d23a SHA512 1445a21e60a714cb6ac0cbc71bb44c3a2b51f169621bcc0183c788e70e9eaae2d07949e4b6f7ad4ba5dae99d91a2a7225d897771e4f9fb2230481365ee304b53

View file

@ -0,0 +1,29 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="Pickled object field for Django"
HOMEPAGE="https://github.com/gintas/django-picklefield"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="dev-python/django[${PYTHON_USEDEP}]"
distutils_enable_tests unittest
src_prepare() {
# Fix for >=django-3.2
echo "DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'" >> tests/settings.py || die
distutils-r1_src_prepare
}
python_test() {
"${EPYTHON}" -m django test -v2 --settings=tests.settings || die "Tests fail with ${EPYTHON}"
}

View file

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