Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 55 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ buildPythonPackage, fetchFromGitHub, lib, libffi, pkg-config, pycparser, pytestCheckHook, setuptools, stdenv,}:
buildPythonPackage rec { pname = "cffi"; version = "2.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "python-cffi"; repo = "cffi"; tag = "v${version}"; hash = "sha256-7Mzz3KmmmE2xQru1GA4aY0DZqn6vxykWiExQvnA1bjM="; };
nativeBuildInputs = [ pkg-config ];
build-system = [ setuptools ];
buildInputs = [ libffi ];
# Some dependent packages expect to have pycparser available when using cffi. dependencies = [ pycparser ];
doCheck = !(stdenv.hostPlatform.isMusl || stdenv.hostPlatform.useLLVM or false);
disabledTests = [ # parse errror "test_dont_remove_comment_in_line_directives" "test_multiple_line_directives" "test_commented_line_directive" # exception mismatch "test_unknown_name" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = { changelog = "https://github.com/python-cffi/cffi/releases/tag/v${version}"; description = "Foreign Function Interface for Python calling C code"; downloadPage = "https://github.com/python-cffi/cffi"; homepage = "https://cffi.readthedocs.org/"; license = lib.licenses.mit0; teams = [ lib.teams.python ]; };}