archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-deepdiff / trunk / PKGBUILD
blob976be255c023155300dfe2b79fe07ac7b5a9d6ec
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-deepdiff
4 pkgver=6.2.2
5 pkgrel=1
6 pkgdesc="Deep Difference and Search of any Python object/data."
7 url="https://github.com/seperman/deepdiff"
8 license=('MIT')
9 arch=('any')
10 depends=('python-ordered-set')
11 optdepends=('python-click: for cli'
12             'python-yaml: for cli'
13             'python-toml: for cli'
14             'python-clevercsv: for cli')
15 makedepends=('python-setuptools')
16 checkdepends=('python-pytest' 'python-clevercsv' 'python-click' 'python-dateutil'
17               'python-jsonpickle' 'python-numpy' 'python-toml' 'python-yaml')
18 source=("https://github.com/seperman/deepdiff/archive/$pkgver/$pkgname-$pkgver.tar.gz")
19 sha512sums=('3a9d908e5cc64228da2be8d9960c55e8da084511ce97c006bbd0cfe80bf49548dc595317c598300d15b366d0609860e9c4082f8d8bc935eb27e6c8f466d88259')
21 build() {
22   cd deepdiff-$pkgver
23   python setup.py build
26 check() {
27   cd deepdiff-$pkgver
28   pytest tests
31 package() {
32   cd deepdiff-$pkgver
33   python setup.py install --root="$pkgdir" --optimize=1
35   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/