commit:     5f02c36c6b656f3a219606417d55a49fc165c81b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 21 07:07:32 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 21 07:57:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f02c36c

dev-python/libsass: Bump to 0.21.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/libsass/Manifest              |  1 +
 dev-python/libsass/libsass-0.21.0.ebuild | 49 ++++++++++++++++++++++++++++++++
 profiles/package.mask                    |  1 +
 3 files changed, 51 insertions(+)

diff --git a/dev-python/libsass/Manifest b/dev-python/libsass/Manifest
index dc9e178a6e4..be25f8ea944 100644
--- a/dev-python/libsass/Manifest
+++ b/dev-python/libsass/Manifest
@@ -1 +1,2 @@
 DIST libsass-0.20.1.tar.gz 316227 BLAKE2B 
e4b4955a2ad0722d76e79979405c8e549b911d31c3fb828563e1e52cad9f9fe72cf543bd5e2ac2383faf85a44f4f0258253f7d45394f37d30076425660ebd031
 SHA512 
8918154f9fc4b0618d4729195414b2d8c5818a3e4dde2d4e084a73c01c3f6a2d46028a35b4e11759bc001266bcf03423319230682507c6952c9b0eb2df17feaf
+DIST libsass-python-0.21.0.gh.tar.gz 55774 BLAKE2B 
3c584ff3b6c09bc768554a3a4f7ef28ecea0726f59206da8540f9c1b4db74ab1235695074dd6b95db74f174066bb856c9854026525da82e7763f341920f0bd53
 SHA512 
d5b7a1bf0dc736a6a38e2e609f0a213306de31d5ad84cfdcd96f9ff72a1c38f15bad3cf25a1cec6dca5a9f3b00a8509afff2b4ea5e4db80e218e3ae603d55856

diff --git a/dev-python/libsass/libsass-0.21.0.ebuild 
b/dev-python/libsass/libsass-0.21.0.ebuild
new file mode 100644
index 00000000000..a0e7d0f4ae0
--- /dev/null
+++ b/dev-python/libsass/libsass-0.21.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+inherit distutils-r1
+
+MY_P=libsass-python-${PV}
+DESCRIPTION="A straightforward binding of libsass for Python"
+HOMEPAGE="https://github.com/sass/libsass-python/";
+SRC_URI="
+       https://github.com/sass/libsass-python/archive/${PV}.tar.gz
+               -> ${MY_P}.gh.tar.gz"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=dev-libs/libsass-3.6.5"
+DEPEND=${RDEPEND}
+BDEPEND="
+       dev-python/six[${PYTHON_USEDEP}]
+       test? (
+               dev-python/PyQt5[testlib,${PYTHON_USEDEP}]
+               dev-python/werkzeug[${PYTHON_USEDEP}]
+       )"
+
+# Remove sassc, in favour of pysassc, see: 
https://github.com/sass/libsass-python/issues/134
+# This avoids a file collision with dev-lang/sassc
+PATCHES=( "${FILESDIR}"/${PN}-0.20.0_rename_sassc.patch )
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       echo "${PV}" > .libsass-upstream-version || die
+       distutils-r1_src_prepare
+       export SYSTEM_SASS=1
+}
+
+python_test() {
+       local deselect=(
+               # probably broken by removal of sassc
+               sasstests.py::SasscTestCase::test_sassc_stdout
+       )
+
+       epytest sasstests.py ${deselect[@]/#/--deselect }
+}

diff --git a/profiles/package.mask b/profiles/package.mask
index ccd1872c492..d9522a2e489 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -800,6 +800,7 @@ dev-lang/spark
 # v3.6.4 uses huge amounts of memory: Bug #705682
 # v3.6.1 is the latest version without this issue
 >=dev-libs/libsass-3.6.2
+>=dev-python/libsass-0.21.0
 
 # Lars Wendler <polynomia...@gentoo.org> (2019-11-14)
 # Breaks archives containing relative paths

Reply via email to