python3Packages.tree-sitter-language-pack: 0.9.0 -> 0.9.1
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tree-sitter-language-pack";
|
pname = "tree-sitter-language-pack";
|
||||||
version = "0.9.0";
|
version = "0.9.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
# Using the GitHub sources necessitates fetching the treesitter grammar parsers by using a vendored script.
|
# Using the GitHub sources necessitates fetching the treesitter grammar parsers by using a vendored script.
|
||||||
@@ -28,18 +28,22 @@ buildPythonPackage rec {
|
|||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "tree_sitter_language_pack";
|
pname = "tree_sitter_language_pack";
|
||||||
inherit version;
|
inherit version;
|
||||||
hash = "sha256-kA6zvYLBvPXPIO2FKxtv3H6uieQKhg+l4iGnlmh8NZo=";
|
hash = "sha256-LaU5dR7MULnmu/yji1dQGjxV5nGGqTnVvxSdnLciCXQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Upstream bumped the setuptools and typing-extensions dependencies, but we can still use older versions
|
# Upstream bumped dependencies aggressively, but we can still use older
|
||||||
# since the newer ones aren’t packaged in nixpkgs. We can't use pythonRelaxDepsHook here because it runs
|
# versions since the newer ones aren’t packaged in nixpkgs. We can't use
|
||||||
# in postBuild, while the dependency check occurs during the build phase.
|
# pythonRelaxDepsHook here because it runs in postBuild, while the dependency
|
||||||
|
# check occurs during the build phase.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace-fail "setuptools>=80.9.0" "setuptools>=78.1.0" \
|
--replace-fail "typing-extensions>=4.15.0" "typing-extensions>=4.14.1"
|
||||||
--replace-fail "typing-extensions>=4.14.0" "typing-extensions>=4.13.2"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
build-system = [
|
build-system = [
|
||||||
cython
|
cython
|
||||||
setuptools
|
setuptools
|
||||||
@@ -53,8 +57,10 @@ buildPythonPackage rec {
|
|||||||
tree-sitter-yaml
|
tree-sitter-yaml
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
pythonRelaxDeps = [
|
||||||
pytestCheckHook
|
"tree-sitter"
|
||||||
|
"tree-sitter-embedded-template"
|
||||||
|
"tree-sitter-yaml"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
@@ -62,8 +68,8 @@ buildPythonPackage rec {
|
|||||||
"tree_sitter_language_pack.bindings"
|
"tree_sitter_language_pack.bindings"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# make sure import the built version, not the source one
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# make sure import the built version, not the source one
|
|
||||||
rm -r tree_sitter_language_pack
|
rm -r tree_sitter_language_pack
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user