Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / xkbcommon / default.nix
blob4e1ef0ea0ef78175cf9a97414f4911cfc510cf7c
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , python
5 , cffi
6 , pkg-config
7 , libxkbcommon
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "xkbcommon";
13   version = "1.0";
14   format = "setuptools";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-NTEafcAU/PU1/2n3pb3m8dbZptI9j9nnmVG4iFqHHe8=";
19   };
21   nativeBuildInputs = [ pkg-config ];
22   propagatedNativeBuildInputs = [ cffi ];
23   buildInputs = [ libxkbcommon ];
24   propagatedBuildInputs = [ cffi ];
25   nativeCheckInputs = [ pytestCheckHook ];
27   postBuild = ''
28     ${python.pythonOnBuildForHost.interpreter} xkbcommon/ffi_build.py
29   '';
31   pythonImportsCheck = [ "xkbcommon" ];
33   meta = with lib; {
34     homepage = "https://github.com/sde1000/python-xkbcommon";
35     description = "Python bindings for libxkbcommon using cffi";
36     license = licenses.mit;
37     maintainers = with maintainers; [ chvp ];
38   };