mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
ca16e7dc52
Next to the version bump, some little refactoring was performed.
30 lines
642 B
Nix
30 lines
642 B
Nix
{ lib, buildPythonPackage, isPy3k, olm
|
|
, cffi, future, typing }:
|
|
|
|
buildPythonPackage {
|
|
pname = "python-olm";
|
|
inherit (olm) src version;
|
|
|
|
sourceRoot = "source/python";
|
|
buildInputs = [ olm ];
|
|
|
|
preBuild = ''
|
|
make include/olm/olm.h
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
future
|
|
] ++ lib.optionals (!isPy3k) [ typing ];
|
|
|
|
# Some required libraries for testing are not packaged yet.
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "olm" ];
|
|
|
|
meta = {
|
|
inherit (olm.meta) license maintainers;
|
|
description = "Python bindings for Olm";
|
|
homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
|
|
};
|
|
}
|