mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-23 13:45:49 +02:00
xkbcommon: init at 0.4
This commit is contained in:
parent
c00092afde
commit
506c85ab9b
38
pkgs/development/python-modules/xkbcommon/default.nix
Normal file
38
pkgs/development/python-modules/xkbcommon/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, cffi
|
||||
, pkg-config
|
||||
, libxkbcommon
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xkbcommon";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "V5LMaX5TPhk9x4ZA4MGFzDhUiC6NKPo4uTbW6Q7mdVw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
propagatedNativeBuildInputs = [ cffi ];
|
||||
buildInputs = [ libxkbcommon ];
|
||||
propagatedBuildInputs = [ cffi ];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
postBuild = ''
|
||||
${python.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 ];
|
||||
};
|
||||
}
|
|
@ -9841,6 +9841,8 @@ in {
|
|||
|
||||
xhtml2pdf = callPackage ../development/python-modules/xhtml2pdf { };
|
||||
|
||||
xkbcommon = callPackage ../development/python-modules/xkbcommon { };
|
||||
|
||||
xkcdpass = callPackage ../development/python-modules/xkcdpass { };
|
||||
|
||||
xknx = callPackage ../development/python-modules/xknx { };
|
||||
|
|
Loading…
Reference in a new issue