Files
nixpkgs/pkgs/development/python-modules/etebase/default.nix
thesn10 4d70a0bdbb python3Packages.etebase: use system libsodium
Assisted-by: Claude Code (claude-sonnet-5-5)
2026-11-08 13:50:00 +01:00

70 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
rustPlatform,
cargo,
pkg-config,
rustc,
rustfmt,
setuptools-rust,
libsodium,
openssl,
msgpack,
nixosTests,
}:
buildPythonPackage rec {
pname = "etebase";
version = "0.31.8";
src = fetchFromGitHub {
owner = "etesync";
repo = "etebase-py";
rev = "v${version}";
hash = "sha256-V2mQAYIPyDRQMfT0af2mpKfWXAtnJpRmY5qG1hj2dF4=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-e7KNysHeZvHLttHKvG//uP5ebIsUiW0uwXsASVpWh58=";
};
pyproject = true;
nativeBuildInputs = [
pkg-config
rustfmt
setuptools-rust
rustPlatform.cargoSetupHook
cargo
rustc
];
buildInputs = [
libsodium
openssl
];
propagatedBuildInputs = [ msgpack ];
postPatch = ''
# Use system OpenSSL, which gets security updates.
substituteInPlace Cargo.toml \
--replace ', features = ["vendored"]' ""
'';
pythonImportsCheck = [ "etebase" ];
passthru.tests = {
inherit (nixosTests) etebase-server;
};
meta = {
homepage = "https://www.etebase.com/";
description = "Python client library for Etebase";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}