From 49ab1dcc6984d27d64694ff61821fff08d52f931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Thu, 24 Aug 2017 16:07:01 +0200 Subject: [PATCH] pythonPackages.matrix-client: init at 0.0.6 --- .../python-modules/matrix-client/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/matrix-client/default.nix diff --git a/pkgs/development/python-modules/matrix-client/default.nix b/pkgs/development/python-modules/matrix-client/default.nix new file mode 100644 index 00000000000..d0bbef8a78f --- /dev/null +++ b/pkgs/development/python-modules/matrix-client/default.nix @@ -0,0 +1,31 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pythonPackages +}: + +buildPythonPackage rec { + pname = "matrix-client"; + version = "0.0.6"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "15kx5px26hwr0sxpyjk4w61fjnabg1b57hwys1nyarc0jx4qjhiq"; + }; + + checkInputs = with pythonPackages; [ tox pytest flake8 responses ]; + + propagatedBuildInputs = with pythonPackages; [ requests ]; + + checkPhase = '' + pytest + ''; + + meta = with stdenv.lib; { + description = "Matrix Client-Server SDK"; + homepage = https://github.com/matrix-org/matrix-python-sdk; + license = licenses.asl20; + maintainers = with maintainers; [ olejorgenb ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 56f915f372d..d00d7f5d164 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12539,6 +12539,7 @@ in { inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa; }; + matrix-client = callPackage ../development/python-modules/matrix-client/default.nix { pythonPackages = self; }; mccabe = callPackage ../development/python-modules/mccabe { };