Skip to content

Commit e928129

Browse files
authored
Merge pull request kivy#3316 from GvozdevLeonid/develop
Added msgspec recipe
2 parents 4241e2f + 02ff950 commit e928129

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)