git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29360 from disassembler/ws4py

ws4py: add git to checkInputs

commitaff5ef6481000eee9b61360d6eb92a339ffd67fc authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateThu 14 Sep 2017, 13:19 (9 years ago) parent4b78d443f5f208
2 files changed+27−23
pkgs/development/python-modules/ws4py/default.nix+26 pkgs/top-level/python-packages.nix+1−23
pkgs/development/python-modules/ws4py/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ stdenv, buildPythonPackage, fetchPypi, pytest, mock, git, asyncio
2+, cherrypy, gevent, tornado }:
3+
4+buildPythonPackage rec {
5+ name = "${pname}-${version}";
6+ pname = "ws4py";
7+ version = "0.4.2";
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "0zr3254ky6r7q15l3dhdczfa8i723055zdkqssjifsgcwvirriks";
12+ };
13+
14+ checkInputs = [ pytest mock git ];
15+ propagatedBuildInputs = [ asyncio cherrypy gevent tornado ];
16+
17+ checkPhase = ''
18+ pytest test
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ homepage = https://ws4py.readthedocs.org;
23+ description = "A WebSocket package for Python";
24+ maintainers = with maintainers; [ rickynils ];
25+ };
26+}
pkgs/top-level/python-packages.nix+1−23
@@ -24533,29 +24533,7 @@ EOF
2453324533 };
2453424534 };
2453524535
24536− ws4py = buildPythonPackage rec {
24537− name = "${pname}-${version}";
24538− pname = "ws4py";
24539− version = "0.4.2";
24540−
24541− src = fetchPypi {
24542− inherit pname version;
24543− sha256 = "0zr3254ky6r7q15l3dhdczfa8i723055zdkqssjifsgcwvirriks";
24544− };
24545−
24546− buildInputs = with self; [ pytest mock ];
24547− propagatedBuildInputs = with self; [ asyncio cherrypy gevent tornado ];
24548−
24549− checkPhase = ''
24550− pytest test
24551− '';
24552−
24553− meta = {
24554− homepage = https://ws4py.readthedocs.org;
24555− description = "A WebSocket package for Python";
24556− maintainers = with maintainers; [ rickynils ];
24557− };
24558− };
24536+ ws4py = callPackage ../development/python-modules/ws4py {};
2455924537
2456024538 gdata = buildPythonPackage rec {
2456124539 name = "gdata-${version}";