* update codespell to 2.3.0-2
This commit is contained in:
parent
69f12d3570
commit
536c0a65b2
19
codespell/.SRCINFO
Normal file
19
codespell/.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
pkgbase = codespell
|
||||
pkgdesc = check code for common misspellings
|
||||
pkgver = 2.3.0
|
||||
pkgrel = 2
|
||||
url = https://github.com/codespell-project/codespell
|
||||
arch = any
|
||||
license = GPL-2.0-only
|
||||
checkdepends = python-pytest-dependency
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-wheel
|
||||
makedepends = python-setuptools-scm
|
||||
depends = python-chardet
|
||||
source = https://pypi.io/packages/source/c/codespell/codespell-2.3.0.tar.gz
|
||||
source = remove-check-test_command.patch
|
||||
sha256sums = 360c7d10f75e65f67bad720af7007e1060a5d395670ec11a7ed1fed9dd17471f
|
||||
sha256sums = 17a5390c0123480c794d293e0a6b95a9f941ea9d5d9168649746dd55faf0b833
|
||||
|
||||
pkgname = codespell
|
3
codespell/.nvchecker.toml
Normal file
3
codespell/.nvchecker.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[codespell]
|
||||
source = "pypi"
|
||||
pypi = "codespell"
|
@ -4,15 +4,14 @@
|
||||
|
||||
pkgname=codespell
|
||||
pkgver=2.3.0
|
||||
pkgrel=1.1
|
||||
pkgrel=2
|
||||
pkgdesc='check code for common misspellings'
|
||||
arch=(any)
|
||||
url='https://github.com/codespell-project/codespell'
|
||||
license=('GPL2')
|
||||
license=('GPL-2.0-only')
|
||||
depends=('python-chardet')
|
||||
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm'
|
||||
'python-validate-pyproject')
|
||||
checkdepends=('python-pytest-cov' 'python-pytest-dependency')
|
||||
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm')
|
||||
checkdepends=('python-pytest-dependency')
|
||||
source=("https://pypi.io/packages/source/c/codespell/${pkgname}-${pkgver}.tar.gz"
|
||||
"remove-check-test_command.patch")
|
||||
sha256sums=('360c7d10f75e65f67bad720af7007e1060a5d395670ec11a7ed1fed9dd17471f'
|
||||
@ -22,8 +21,7 @@ prepare() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
|
||||
# Remove the "test_command" check which makes check() fail
|
||||
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/tools/codespell/default.nix#L43
|
||||
patch -Np1 <"${srcdir}"/remove-check-test_command.patch
|
||||
patch -Np1 < "${srcdir}/remove-check-test_command.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
@ -33,7 +31,11 @@ build() {
|
||||
|
||||
check() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
pytest
|
||||
python -m installer --destdir=tmp_install dist/*.whl
|
||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
export PATH="$PWD/tmp_install/usr/bin:$PATH"
|
||||
export PYTHONPATH="$PWD/tmp_install/$site_packages"
|
||||
pytest --override-ini="addopts="
|
||||
}
|
||||
|
||||
package() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user