author | David Runge
<dvzrv@archlinux.org> 2020-09-13 20:18:38 UTC |
committer | David Runge
<dvzrv@archlinux.org> 2020-09-13 20:18:38 UTC |
parent | dd6d1973f1c2a4a2a5fd49992aee0991a5c0914a |
PKGBUILD | +10 | -3 |
python-toml-0.10.1-install_type_hints.patch | +11 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 34cddc0..0998adb 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,18 +4,25 @@ _name=toml pkgbase=python-toml pkgname=('python-toml' 'python2-toml') pkgver=0.10.1 -pkgrel=1 +pkgrel=2 pkgdesc="A Python library for parsing and creating TOML" arch=('any') url="https://github.com/uiri/toml" license=('MIT') makedepends=('python-setuptools' 'python2-setuptools') checkdepends=('python-numpy' 'python-pytest' 'python2-numpy' 'python2-pytest') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") -sha512sums=('9dc813f84b56bee6519c70efe49a834d6695c82d429f0b7cc6e6153a1fb14d3fb627dea24df2d2664354f27108389d51475609272d59fc7e4b64a2c17d74f33f') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz" + "${pkgbase}-0.10.1-install_type_hints.patch") +sha512sums=('9dc813f84b56bee6519c70efe49a834d6695c82d429f0b7cc6e6153a1fb14d3fb627dea24df2d2664354f27108389d51475609272d59fc7e4b64a2c17d74f33f' + '000fd1416341567a1828034f6e3844f7c5436e2b89f06b0ffa2567fc86d3b72dd4a8085d26d4366764446dfb050cfececaada4ca53f9c355c62aafb26ea87be4') +b2sums=('ef607093fae3a148c7f904a2281b8218855aad6d8af7a54eda2c7c835e8a86719b240a5486f761850e4d80ef1c1711ef33077fa6fd49eeb903faeae550d8941b' + '23449773cb0c7004d6c367c4cef666561e16fcd38166d17428a8192f6649bdfa76277f20bd4662f7571bc020fba6e5614e8f7dcf8502d18eb1e0ede6cb3ddde2') prepare() { mv -v "${_name}-$pkgver" "$pkgbase-$pkgver" + cd "$pkgbase-$pkgver" + patch -Np1 -i ../"${pkgbase}-0.10.1-install_type_hints.patch" + mv -v "${_name}.pyi" "${_name}/__init__.pyi" } build() { diff --git a/python-toml-0.10.1-install_type_hints.patch b/python-toml-0.10.1-install_type_hints.patch new file mode 100644 index 0000000..d31f69d --- /dev/null +++ b/python-toml-0.10.1-install_type_hints.patch @@ -0,0 +1,11 @@ +diff -ruN a/setup.py b/setup.py +--- a/setup.py 2020-01-03 20:37:49.000000000 +0000 ++++ b/setup.py 2020-09-13 17:38:30.016905954 +0000 +@@ -16,6 +16,7 @@ + author_email="uiri@xqz.ca", + url="https://github.com/uiri/toml", + packages=['toml'], ++ package_data={'toml': ['*.pyi', '**/*.pyi']}, + license="MIT", + long_description=readme_string, + python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*",