python3.pkgs.glean-sdk: unvendor lmdb

This commit is contained in:
Alyssa Ross 2023-05-23 10:04:22 +00:00
parent caa0a24ab0
commit 794e01a0d4
3 changed files with 18 additions and 1 deletions

View file

@ -46,6 +46,9 @@ stdenv.mkDerivation rec {
Cflags: -I$dev/include
Libs: -L$out/lib -llmdb
EOF
# Expected by Rust libraries.
ln -s lmdb.pc "$dev/lib/pkgconfig/liblmdb.pc"
'';
meta = with lib; {

View file

@ -6,8 +6,11 @@
, fetchPypi
, glean-parser
, iso8601
, lmdb
, pkg-config
, pytest-localserver
, pytestCheckHook
, python
, pythonOlder
, rustc
, rustPlatform
@ -34,11 +37,16 @@ buildPythonPackage rec {
nativeBuildInputs = [
cargo
pkg-config
rustc
rustPlatform.cargoSetupHook
setuptools-rust
];
buildInputs = [
lmdb
];
propagatedBuildInputs = [
cffi
glean-parser
@ -57,6 +65,10 @@ buildPythonPackage rec {
"test_flipping_upload_enabled_respects_order_of_events"
];
postInstallCheck = lib.optionalString (stdenv.hostPlatform.parsed.kernel.execFormat == lib.systems.parse.execFormats.elf) ''
readelf -a $out/${python.sitePackages}/glean/libglean_ffi.so | grep -F 'Shared library: [liblmdb.so'
'';
pythonImportsCheck = [
"glean"
];

View file

@ -4090,7 +4090,9 @@ self: super: with self; {
glean-parser = callPackage ../development/python-modules/glean-parser { };
glean-sdk = callPackage ../development/python-modules/glean-sdk { };
glean-sdk = callPackage ../development/python-modules/glean-sdk {
inherit (pkgs) lmdb;
};
glfw = callPackage ../development/python-modules/glfw { };