Skip to content

Commit e0812fc

Browse files
pypy310Packages.cffi: make proper package
Some packages, for example brotlicffi, expect to get pycparser. Make a placeholder package for their benefit. It remains to be seen whether the lack of a directory in site-packages will cause trouble.
1 parent a22671f commit e0812fc

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

pkgs/development/python-modules/cffi/default.nix

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,32 @@
1111
pycparser,
1212
}:
1313

14+
let
15+
version = "1.17.1";
16+
in
1417
if isPyPy then
15-
null
18+
buildPythonPackage {
19+
pname = "cffi";
20+
inherit version;
21+
pyproject = false;
22+
23+
# cffi is bundled with PyPy.
24+
dontUnpack = true;
25+
26+
# Some dependent packages expect to have pycparser available when using cffi.
27+
dependencies = [ pycparser ];
28+
29+
meta = {
30+
description = "Foreign Function Interface for Python calling C code (bundled with PyPy, placeholder package)";
31+
homepage = "https://cffi.readthedocs.org/";
32+
license = lib.licenses.mit;
33+
maintainers = lib.teams.python.members;
34+
};
35+
}
1636
else
1737
buildPythonPackage rec {
1838
pname = "cffi";
19-
version = "1.17.1";
39+
inherit version;
2040
pyproject = true;
2141

2242
src = fetchPypi {

0 commit comments

Comments
 (0)