We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4241e2f + 02ff950 commit e928129Copy full SHA for e928129
1 file changed
pythonforandroid/recipes/msgspec/__init__.py
@@ -0,0 +1,21 @@
1
+from typing import Any
2
+
3
+from pythonforandroid.archs import Arch
4
+from pythonforandroid.recipe import PyProjectRecipe
5
6
7
+class MsgspecRecipe(PyProjectRecipe):
8
+ url = 'https://github.com/jcrist/msgspec/archive/refs/tags/{version}.tar.gz'
9
+ depends = ['python3', 'setuptools']
10
+ site_packages_name = 'msgspec'
11
+ name = 'msgspec'
12
+ version = '0.21.1'
13
14
+ def get_recipe_env(self, arch: Arch, **kwargs) -> dict[str, Any]:
15
+ env: dict[str, Any] = super().get_recipe_env(arch, **kwargs)
16
+ env['SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MSGSPEC'] = self.version
17
18
+ return env
19
20
21
+recipe = MsgspecRecipe()
0 commit comments