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