lol

Merge pull request #249278 from fabaff/matrix-synapse-s3-storage-provider-fix

matrix-synapse.plugins.matrix-synapse-s3-storage-provider: add missin…

authored by

Fabian Affolter and committed by
GitHub
fc9273ff cfb77410

+33 -8
+33 -8
pkgs/servers/matrix-synapse/plugins/s3-storage-provider.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, matrix-synapse, twisted, humanize, boto3, tqdm }: 1 + { lib 2 + , boto3 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , humanize 6 + , matrix-synapse-unwrapped 7 + , pythonOlder 8 + , tqdm 9 + , twisted 10 + }: 2 11 3 12 buildPythonPackage rec { 4 13 pname = "matrix-synapse-s3-storage-provider"; 5 14 version = "1.2.1"; 15 + format = "setuptools"; 16 + 17 + disabled = pythonOlder "3.7"; 6 18 7 19 src = fetchFromGitHub { 8 20 owner = "matrix-org"; 9 21 repo = "synapse-s3-storage-provider"; 10 - rev = "v${version}"; 11 - sha256 = "sha256-92Xkq54jrUE2I9uVOxI72V9imLNU6K4JqDdOZb+4f+Y="; 22 + rev = "refs/tags/v${version}"; 23 + hash = "sha256-92Xkq54jrUE2I9uVOxI72V9imLNU6K4JqDdOZb+4f+Y="; 12 24 }; 13 25 14 26 postPatch = '' ··· 16 28 --replace "humanize>=0.5.1,<0.6" "humanize>=0.5.1" 17 29 ''; 18 30 31 + buildInputs = [ 32 + matrix-synapse-unwrapped 33 + ]; 34 + 35 + propagatedBuildInputs = [ 36 + boto3 37 + humanize 38 + tqdm 39 + twisted 40 + ] 41 + # For the s3_media_upload script 42 + ++ matrix-synapse-unwrapped.propagatedBuildInputs; 43 + 44 + # Tests need network access 19 45 doCheck = false; 20 - pythonImportsCheck = [ "s3_storage_provider" ]; 21 46 22 - buildInputs = [ matrix-synapse ]; 23 - propagatedBuildInputs = [ twisted humanize boto3 tqdm ] 24 - # for the s3_media_upload script 25 - ++ matrix-synapse.propagatedBuildInputs; 47 + pythonImportsCheck = [ 48 + "s3_storage_provider" 49 + ]; 26 50 27 51 meta = with lib; { 28 52 description = "Synapse storage provider to fetch and store media in Amazon S3"; 29 53 homepage = "https://github.com/matrix-org/synapse-s3-storage-provider"; 54 + changelog = "https://github.com/matrix-org/synapse-s3-storage-provider/releases/tag/v${version}"; 30 55 license = licenses.asl20; 31 56 maintainers = with maintainers; [ yuka ]; 32 57 };