mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
40 lines
875 B
Nix
40 lines
875 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, cffi
|
|
, pkg-config
|
|
, libxkbcommon
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xkbcommon";
|
|
version = "0.8";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-W+WXO/W3UlaHpN9shHibQhWQ1/fPkq5W8qqxd7eV1RY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|