1{ stdenv 2, lib 3, buildPythonPackage 4, fetchPypi 5, setuptools 6, attrs 7, unittestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "matrix-common"; 12 version = "1.3.0"; 13 format = "pyproject"; 14 15 src = fetchPypi { 16 pname = "matrix_common"; 17 inherit version; 18 hash = "sha256-YuEhzM2fJDQXtX7DenbcRK6xmKelxnr9a4J1mS/yq9E="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools 23 ]; 24 25 propagatedBuildInputs = [ 26 attrs 27 ]; 28 29 nativeCheckInputs = [ 30 unittestCheckHook 31 ]; 32 33 pythonImportsCheck = [ "matrix_common" ]; 34 35 meta = with lib; { 36 description = "Common utilities for Synapse, Sydent and Sygnal"; 37 homepage = "https://github.com/matrix-org/matrix-python-common"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ sumnerevans ]; 40 }; 41}