mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 06:13:54 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
44 lines
807 B
Nix
44 lines
807 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, requests
|
|
, responses
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "matrix-client";
|
|
version = "0.4.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "matrix_client";
|
|
inherit version;
|
|
sha256 = "0mii7ib3bah5ppqs7i8sjv5l0zbl57011908m4l0jbyby90ayy06";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
urllib3
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace \
|
|
"pytest-runner~=5.1" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [ "matrix_client" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Matrix Client-Server SDK";
|
|
homepage = "https://github.com/matrix-org/matrix-python-sdk";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ olejorgenb ];
|
|
};
|
|
}
|