diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-05 03:17:06 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-05 03:17:06 +0000 |
commit | a8b01fd62375e0df65d5f8f20c5ee142ec6739b6 (patch) | |
tree | 20346875d32349138564dc9fa82d43acd8d85da4 /net-p2p/torrentinfo | |
parent | f932718a139f93e19a6883c061f81b365a408592 (diff) |
gentoo auto-resync : 05:11:2022 - 03:17:06
Diffstat (limited to 'net-p2p/torrentinfo')
-rw-r--r-- | net-p2p/torrentinfo/Manifest | 2 | ||||
-rw-r--r-- | net-p2p/torrentinfo/files/torrentinfo-1.8.6-remove-nose.patch | 38 | ||||
-rw-r--r-- | net-p2p/torrentinfo/torrentinfo-1.8.6-r3.ebuild | 26 |
3 files changed, 66 insertions, 0 deletions
diff --git a/net-p2p/torrentinfo/Manifest b/net-p2p/torrentinfo/Manifest index a443686a1d61..062c9c608ef8 100644 --- a/net-p2p/torrentinfo/Manifest +++ b/net-p2p/torrentinfo/Manifest @@ -1,4 +1,6 @@ AUX torrentinfo-1.8.6-fix-tests.patch 934 BLAKE2B 6204fd3d04f7c8ddd4f4e9b9c64683003a4eb19f06fe5d7b7f76d3cdcb356b279ca4ac2d226080422f7bf98711d591b6b054d25539f3aa4096ad25ba970d6ef8 SHA512 d878048fe01bea0260f6b3045e77f88a6fb94ed11e15996fa3389119d8315657f77d2434d2c67b3ab58c83d4741f11c22723f0e9abbd06f4ab0df82cffc1b064 +AUX torrentinfo-1.8.6-remove-nose.patch 1120 BLAKE2B 063bbe273418ea1f21e680d0bd531a4dde222a8a819485e8b816c6c071e2b352d6cb5b8073d928652eb6e84af03193b668fc1b8616bb88564a737fdc9b488263 SHA512 e53ff5d90581557dc922f8365b2887f1a992ef14c81ff1bccf3cb795ef801067e7b47862406715c175798dd8ddcbecdc48de36f7820906fb68e5e720dbf6e090 DIST torrentinfo-1.8.6.tar.gz 22232 BLAKE2B 04159e4e54fbe979a1a73e1dee39c9b7f9def389c44e3886fd28707646a2bc4c6a4dfadd5494ef9283427959da1c36260828693a0008e09993786d8639813bcf SHA512 7f36f6c80876cbd70ea9e1331195c8a30a6546406f345402d4bec5c58afb9b03a3b60189b8d177a63a7047c3ede7fc18d8fc47ecb1bcbb726dd01b7cb2a6efb2 EBUILD torrentinfo-1.8.6-r2.ebuild 719 BLAKE2B 4db25adb75202804460015033a36b08ef591201643241a3c533142f114cde839637e7fb6842f6ca0b6cc746eac4247a8b93ea8fea5e1a1e7b5e7413493c526e5 SHA512 e9205639874b8d57fdcf4427c5e5d387f7bb15218d007615e657ec52ff2a29013772a163670bf4270ea11869c17c5ab08ffeb35850c034818692773edae6051c +EBUILD torrentinfo-1.8.6-r3.ebuild 652 BLAKE2B 816122184ad276d8b81612819cd782e2f03a7f1e0b63a81a68520707237de240712307b7d63f3710af9217d0cce653fb660176f8451f217f4688c08fc05fb1b7 SHA512 8b5dc4b5b020cf8adab8c3ef6c97043e83e438599a97f43ed9d792256530a6f310ea5d40c9923e272ba194942fd56d4640970a9f5d2cca80f2d9993936e74689 MISC metadata.xml 515 BLAKE2B b36c6d7d836beaf1b24d3a2af4ee6b7f06e6394184b189e300dabf39c22ae389ffc9d8f0bf938dea193fb75311c7f46aa4ec314273f4ebc9216a379e610409ed SHA512 483b2af67e183b6a461bdbac5966e49ac084117ff060ca1ae4dc3b96108f52e97cdd636263fd448316d74f259d1617b8ef68f1a65bcf8d2b2d121a5982af3386 diff --git a/net-p2p/torrentinfo/files/torrentinfo-1.8.6-remove-nose.patch b/net-p2p/torrentinfo/files/torrentinfo-1.8.6-remove-nose.patch new file mode 100644 index 000000000000..260b5c494321 --- /dev/null +++ b/net-p2p/torrentinfo/files/torrentinfo-1.8.6-remove-nose.patch @@ -0,0 +1,38 @@ +From ce97e73493bded33bf83934bd7affd49aff58379 Mon Sep 17 00:00:00 2001 +From: Louis Sautier <sautier.louis@gmail.com> +Date: Sat, 5 Nov 2022 02:54:34 +0100 +Subject: [PATCH] Remove dependency on nose, fixes #17 + +Also rename the test file so that it uses a standard name that pytest +autodetects. +--- + test/{tests.py => test_torrentinfo.py} | 5 ----- + 1 file changed, 5 deletions(-) + rename test/{tests.py => test_torrentinfo.py} (99%) + mode change 100755 => 100644 + +diff --git a/test/tests.py b/test/test_torrentinfo.py +old mode 100755 +new mode 100644 +similarity index 99% +rename from test/tests.py +rename to test/test_torrentinfo.py +index 9e67c9c..ba9bbc7 +--- a/test/tests.py ++++ b/test/test_torrentinfo.py +@@ -27,7 +27,6 @@ + from io import StringIO + + import unittest +-import nose + import re + import torrentinfo + +@@ -704,7 +703,3 @@ def test_is_printable_ascii_success(self): + test_string = 'perfectly printable ascii' + torrentinfo.dump(test_string, self.config, 0, newline=False) + self.assertEqual(self.out.getvalue(), test_string) +- +- +-if __name__ == '__main__': +- nose.main(buffer=True) diff --git a/net-p2p/torrentinfo/torrentinfo-1.8.6-r3.ebuild b/net-p2p/torrentinfo/torrentinfo-1.8.6-r3.ebuild new file mode 100644 index 000000000000..877569c19445 --- /dev/null +++ b/net-p2p/torrentinfo/torrentinfo-1.8.6-r3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="A torrent file parser" +HOMEPAGE="https://github.com/Fuuzetsu/torrentinfo" +SRC_URI="https://github.com/Fuuzetsu/torrentinfo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + # https://github.com/Fuuzetsu/torrentinfo/pull/16 + "${FILESDIR}/${P}-fix-tests.patch" + # https://github.com/Fuuzetsu/torrentinfo/pull/18 + "${FILESDIR}/${P}-remove-nose.patch" +) + +distutils_enable_tests pytest |