mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:25:38 +00:00
ced21f5e1a
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`.
26 lines
737 B
Nix
26 lines
737 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock, git, asyncio
|
|
, cherrypy, gevent, tornado }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ws4py";
|
|
version = "0.5.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "29d073d7f2e006373e6a848b1d00951a1107eb81f3742952be905429dc5a5483";
|
|
};
|
|
|
|
checkInputs = [ pytest mock git ];
|
|
propagatedBuildInputs = [ asyncio cherrypy gevent tornado ];
|
|
|
|
checkPhase = ''
|
|
pytest -k 'not test_timeout_when_no_registered_fds and not test_mainloop_can_be_stopped_when_no_websocket_were_registered'
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://ws4py.readthedocs.org;
|
|
description = "A WebSocket package for Python";
|
|
maintainers = with maintainers; [ rickynils ];
|
|
};
|
|
}
|