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

kivy / python-for-android / 17874199886

20 Sep 2025 02:37AM UTC coverage: 59.164% (-0.02%) from 59.182%
17874199886

Pull #3212

github

web-flow
Merge 71d684f17 into d129d088a
Pull Request #3212: pynacl-recipe

1060 of 2387 branches covered (44.41%)

Branch coverage included in aggregate %.

4 of 8 new or added lines in 1 file covered. (50.0%)

1 existing line in 1 file now uncovered.

4957 of 7783 relevant lines covered (63.69%)

2.54 hits per line

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

52.63
/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

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

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

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

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

32
        return env
×
33

34

35
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