Files
nixpkgs/pkgs/by-name/ma/matrix-synapse-unwrapped/plugins/s3-storage-provider.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

63 lines
1.3 KiB
Nix

{
lib,
boto3,
buildPythonPackage,
fetchFromGitHub,
humanize,
matrix-synapse-unwrapped,
pythonOlder,
tqdm,
twisted,
psycopg2,
}:
buildPythonPackage rec {
pname = "matrix-synapse-s3-storage-provider";
version = "1.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "matrix-org";
repo = "synapse-s3-storage-provider";
rev = "refs/tags/v${version}";
hash = "sha256-Nv8NkzOcUDX17N7Lyx/NT1vXztiRNaTYIAWNPHxgxJ4=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "humanize>=0.5.1,<0.6" "humanize>=0.5.1"
'';
buildInputs = [
matrix-synapse-unwrapped
];
propagatedBuildInputs = [
boto3
humanize
tqdm
twisted
psycopg2
]
# For the s3_media_upload script
++ matrix-synapse-unwrapped.propagatedBuildInputs;
# Tests need network access
doCheck = false;
pythonImportsCheck = [
"s3_storage_provider"
];
meta = {
description = "Synapse storage provider to fetch and store media in Amazon S3";
mainProgram = "s3_media_upload";
homepage = "https://github.com/matrix-org/synapse-s3-storage-provider";
changelog = "https://github.com/matrix-org/synapse-s3-storage-provider/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}