2022-01-19 23:45:15 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2022-01-19 23:45:15 +00:00
|
|
|
, attrs
|
2022-09-30 11:47:45 +00:00
|
|
|
, unittestCheckHook
|
2022-01-19 23:45:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-09-30 11:47:45 +00:00
|
|
|
pname = "matrix-common";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "1.3.0";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-09-30 11:47:45 +00:00
|
|
|
pname = "matrix_common";
|
|
|
|
inherit version;
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-YuEhzM2fJDQXtX7DenbcRK6xmKelxnr9a4J1mS/yq9E=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
pythonImportsCheck = [ "matrix_common" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Common utilities for Synapse, Sydent and Sygnal";
|
|
|
|
homepage = "https://github.com/matrix-org/matrix-python-common";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ sumnerevans ];
|
|
|
|
};
|
|
|
|
}
|