python313Packages.simplekv: fix dependencies (#388796)

This commit is contained in:
Peder Bergebakken Sundt 2025-06-06 03:24:18 +02:00 committed by GitHub
commit dd7c3cf387
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 14 deletions

View file

@ -2896,17 +2896,11 @@
name = "Brandon Elam Barker";
};
bbenne10 = {
email = "Bryan.Bennett@protonmail.com";
email = "Bryan.Bennett+nixpkgs@proton.me";
matrix = "@bryan.bennett:matrix.org";
github = "bbenne10";
githubId = 687376;
name = "Bryan Bennett";
keys = [
{
# compare with https://keybase.io/bbenne10
fingerprint = "41EA 00B4 00F9 6970 1CB2 D3AF EF90 E3E9 8B8F 5C0B";
}
];
};
bbenno = {
email = "nix@bbenno.com";

View file

@ -1,12 +1,21 @@
{
lib,
buildPythonPackage,
dulwich,
fetchFromGitHub,
mock,
pytestCheckHook,
pythonOlder,
setuptools,
# optional dependencies
azure-storage-blob,
boto3,
dulwich,
google-cloud-storage,
pymongo,
redis,
# testing
mock,
pytestCheckHook,
six,
}:
@ -26,12 +35,11 @@ buildPythonPackage rec {
build-system = [ setuptools ];
dependencies = [
dulwich
nativeCheckInputs = [
mock
pytestCheckHook
six
];
] ++ optional-dependencies.git;
pythonImportsCheck = [ "simplekv" ];
@ -40,11 +48,28 @@ buildPythonPackage rec {
"test_concurrent_mkdir"
];
optional-dependencies = {
amazon = [ boto3 ];
azure = [ azure-storage-blob ];
google = [ google-cloud-storage ];
redis = [ redis ];
mongodb = [ pymongo ];
git = [ dulwich ];
/*
Additional potential dependencies not exposed here:
sqlalchemy: Our version is too new for simplekv
appengine-python-standard: Not packaged in nixpkgs
*/
};
meta = with lib; {
description = "Simple key-value store for binary data";
homepage = "https://github.com/mbr/simplekv";
changelog = "https://github.com/mbr/simplekv/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
maintainers = with maintainers; [
fab
bbenne10
];
};
}