diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/matrix-common/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/matrix-common/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/matrix-common/default.nix b/nixpkgs/pkgs/development/python-modules/matrix-common/default.nix new file mode 100644 index 000000000000..8252bc267a02 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/matrix-common/default.nix @@ -0,0 +1,41 @@ +{ stdenv +, lib +, buildPythonPackage +, fetchPypi +, setuptools +, attrs +, unittestCheckHook +}: + +buildPythonPackage rec { + pname = "matrix-common"; + version = "1.3.0"; + format = "pyproject"; + + src = fetchPypi { + pname = "matrix_common"; + inherit version; + hash = "sha256-YuEhzM2fJDQXtX7DenbcRK6xmKelxnr9a4J1mS/yq9E="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + attrs + ]; + + nativeCheckInputs = [ + unittestCheckHook + ]; + + 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 ]; + }; +} |