f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
40 lines
887 B
Nix
40 lines
887 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
python,
|
|
cffi,
|
|
pkg-config,
|
|
libxkbcommon,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xkbcommon";
|
|
version = "1.5.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-rBdICNv2HTXZ2oBL8zuqx0vG8r4MEIWUrpPHnNFd3DY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
propagatedNativeBuildInputs = [ cffi ];
|
|
buildInputs = [ libxkbcommon ];
|
|
propagatedBuildInputs = [ cffi ];
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
postBuild = ''
|
|
${python.pythonOnBuildForHost.interpreter} xkbcommon/ffi_build.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "xkbcommon" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/sde1000/python-xkbcommon";
|
|
description = "Python bindings for libxkbcommon using cffi";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ chvp ];
|
|
};
|
|
}
|