2 Commits

Author SHA1 Message Date
Robin Candau
a3ebdc03c8 Add .nvchecker.toml 2025-08-16 17:52:53 +02:00
Sven-Hendrik Haase
eb4f8a5344 License package as 0BSD
This implements RFC40 and RFC52.
https://lists.archlinux.org/archives/list/arch-dev-public@lists.archlinux.org/thread/XR3VAUWC5LNMTVOCKFOHYYEGUQ4ZFCNG/
2025-07-26 15:44:30 +02:00
6 changed files with 57 additions and 30 deletions

View File

@@ -1,7 +1,7 @@
pkgbase = python-lsprotocol pkgbase = python-lsprotocol
pkgdesc = Python types for Language Server Protocol pkgdesc = Python types for Language Server Protocol
pkgver = 2025.0.0 pkgver = 2023.0.1
pkgrel = 1 pkgrel = 3
url = https://github.com/microsoft/lsprotocol url = https://github.com/microsoft/lsprotocol
arch = any arch = any
license = MIT license = MIT
@@ -12,9 +12,8 @@ pkgbase = python-lsprotocol
makedepends = python-build makedepends = python-build
makedepends = python-flit-core makedepends = python-flit-core
makedepends = python-installer makedepends = python-installer
depends = python-attrs
depends = python-cattrs depends = python-cattrs
source = git+https://github.com/microsoft/lsprotocol.git#tag=2025.0.0 source = git+https://github.com/microsoft/lsprotocol.git#tag=2023.0.1
b2sums = ea9f4e871d68f62f174d2f8e2efad7bc6b9c4f54216022047e425531525c676577e4bdd657e8eaad86eea944ab6d996da5ae80badc929910b849b52c0ecd9bb2 b2sums = 8e3ce2c021a8e170aaa05fb7ff8d25136d26a88977d070fa5f1c29616199c50e7fb2e401597dfe16b16e61e381923a6aa5df326624ac03258dc33028d17d4312
pkgname = python-lsprotocol pkgname = python-lsprotocol

4
.nvchecker.toml Normal file
View File

@@ -0,0 +1,4 @@
[python-lsprotocol]
source = "git"
git = "https://github.com/microsoft/lsprotocol.git"
exclude_regex = ".*(pre|a|alpha|b|beta|rc).*"

12
LICENSE Normal file
View File

@@ -0,0 +1,12 @@
Copyright Arch Linux Contributors
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

1
LICENSES/0BSD.txt Symbolic link
View File

@@ -0,0 +1 @@
../LICENSE

View File

@@ -2,29 +2,17 @@
pkgname=python-lsprotocol pkgname=python-lsprotocol
_name=${pkgname#python-} _name=${pkgname#python-}
pkgver=2025.0.0 pkgver=2023.0.1
pkgrel=1 pkgrel=3
pkgdesc='Python types for Language Server Protocol' pkgdesc='Python types for Language Server Protocol'
arch=('any') arch=('any')
url=https://github.com/microsoft/lsprotocol url=https://github.com/microsoft/lsprotocol
license=(MIT) license=('MIT')
depends=( depends=('python-cattrs')
python-attrs makedepends=('git' 'python-build' 'python-flit-core' 'python-installer')
python-cattrs checkdepends=('python-jsonschema' 'python-pyhamcrest' 'python-pytest')
)
makedepends=(
git
python-build
python-flit-core
python-installer
)
checkdepends=(
python-jsonschema
python-pyhamcrest
python-pytest
)
source=("git+$url.git#tag=$pkgver") source=("git+$url.git#tag=$pkgver")
b2sums=('ea9f4e871d68f62f174d2f8e2efad7bc6b9c4f54216022047e425531525c676577e4bdd657e8eaad86eea944ab6d996da5ae80badc929910b849b52c0ecd9bb2') b2sums=('8e3ce2c021a8e170aaa05fb7ff8d25136d26a88977d070fa5f1c29616199c50e7fb2e401597dfe16b16e61e381923a6aa5df326624ac03258dc33028d17d4312')
build() { build() {
cd "$_name"/packages/python cd "$_name"/packages/python
@@ -33,15 +21,16 @@ build() {
check() { check() {
cd "$_name" cd "$_name"
pytest tests/python --deselect tests/python/test_cattrs_special_cases.py::test_notebook_sync_options pytest tests/python
} }
package() { package() {
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s "$site_packages"/"$_name"-$pkgver.dist-info/licenses/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd "$_name"/packages/python cd "$_name"/packages/python
python -m installer --destdir="$pkgdir" dist/*.whl python -m installer --destdir="$pkgdir" dist/*.whl
# Symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s "$site_packages"/"$_name"-$pkgver.dist-info/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
} }

22
REUSE.toml Normal file
View File

@@ -0,0 +1,22 @@
version = 1
[[annotations]]
path = [
"PKGBUILD",
"README.md",
"keys/**",
".SRCINFO",
".nvchecker.toml",
"*.install",
"*.sysusers",
"*.tmpfiles",
"*.logrotate",
"*.pam",
"*.service",
"*.socket",
"*.timer",
"*.desktop",
"*.hook",
]
SPDX-FileCopyrightText = "Arch Linux contributors"
SPDX-License-Identifier = "0BSD"