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