blob: 1ef943855502a7f179492f197d1257af6a3e666e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
_pkgname=dephell_changelogs
pkgname=python-dephell-changelogs
pkgver=0.0.1
pkgrel=6
pkgdesc="Find changelog for github repository, local dir, parse changelog"
arch=('any')
url="https://github.com/dephell/${_pkgname}"
license=('MIT')
depends=('python-requests')
makedepends=('python-setuptools')
checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
'0001-fix-expired-url-in-test-file.patch')
sha256sums=('e639a3d08d389e22fbac0cc64181dbe93c4b4ba9f0134e273e6dd3e26ae70b21'
'9fc9ff3b4bc374ef447d0857644afee7f361d15b2bdd5a9e2e559f480bb17bd7')
b2sums=('6ec5383ff411e944ea90ae1a47061fdbd3f8bb5cfe9342936a3bebe8fc1e1791f7a5b7dfdb6d2d25bcee3ab1bf28d8bbf9101bb5d317afb5705e909964c49f68'
'2fa240416bb0e040b6b9c7083208e1e05aed27f58da590057c1e7b1736b6ef9267a3f269d6ba8feda53f458e097077206059b5be33429ad4f6620d2e0e21f7d1')
prepare() {
cd "${srcdir}"/${_pkgname}-${pkgver}
# https://github.com/dephell/dephell_changelogs/pull/6
patch -Np1 -i ../0001-fix-expired-url-in-test-file.patch
}
build(){
cd "${srcdir}"/${_pkgname}-${pkgver}
python setup.py build
}
check() {
cd "${srcdir}"/${_pkgname}-${pkgver}
python -m pytest \
--deselect 'tests/test_finder.py::test_get_changelog_url[pip-' \
--deselect 'tests/test_finder.py::test_get_changelog_url[attrs-'
}
package() {
cd "${srcdir}"/${_pkgname}-${pkgver}
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|