3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/matrix-client/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

32 lines
652 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, requests
, tox, pytest, flake8, responses
}:
buildPythonPackage rec {
pname = "matrix-client";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "b96e87adf1bc2270166b2a4cff1320d2ef283779ea8b3c4edd0d9051fc7b7924";
};
checkInputs = [ tox pytest flake8 responses ];
propagatedBuildInputs = [ 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 ];
};
}