• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kivy / python-for-android / 17883691221

20 Sep 2025 07:02PM UTC coverage: 59.168% (-0.01%) from 59.182%
17883691221

Pull #3212

github

web-flow
Merge 48b6b4a70 into d129d088a
Pull Request #3212: pynacl-recipe

1060 of 2387 branches covered (44.41%)

Branch coverage included in aggregate %.

5 of 9 new or added lines in 1 file covered. (55.56%)

1 existing line in 1 file now uncovered.

4958 of 7784 relevant lines covered (63.69%)

2.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

55.0
/pythonforandroid/recipes/pynacl/__init__.py
1
from pythonforandroid.recipe import PyProjectRecipe
4✔
2
import os
4✔
3

4

5
class PyNaCLRecipe(PyProjectRecipe):
4✔
6
    name = 'pynacl'
4✔
7
    version = '1.3.0'
4✔
8
    url = 'https://github.com/pyca/pynacl/archive/refs/tags/{version}.tar.gz'
4✔
9

10
    depends = ['hostpython3', 'six', 'setuptools', 'cffi', 'libsodium']
4✔
11
    call_hostpython_via_targetpython = False
4✔
12
    hostpython_prerequisites = ["cffi>=2.0.0"]
4✔
13

14
    def get_recipe_env(self, arch, **kwargs):
4✔
NEW
15
        env = super().get_recipe_env(arch, **kwargs)
×
UNCOV
16
        env['SODIUM_INSTALL'] = 'system'
×
17

18
        libsodium_build_dir = self.get_recipe(
×
19
            'libsodium', self.ctx
20
        ).get_build_dir(arch.arch)
21

NEW
22
        env['CFLAGS'] += ' -I{}'.format(
×
23
            os.path.join(libsodium_build_dir, 'src/libsodium/include')
24
        )
25

NEW
26
        for ldflag in [
×
27
            self.ctx.get_libs_dir(arch.arch),
28
            self.ctx.libs_dir,
29
            libsodium_build_dir
30
        ]:
NEW
31
            env['LDFLAGS'] += ' -L{}'.format(ldflag)
×
32

33
        return env
×
34

35

36
recipe = PyNaCLRecipe()
4✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc