python.pkgs.pyzmq: move expression

This commit is contained in:
Frederik Rietdijk 2018-04-05 21:18:15 +02:00
parent c10f34445e
commit 954880ed54
2 changed files with 30 additions and 15 deletions

View file

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, tornado
, zeromq3
, py
, python
}:
buildPythonPackage rec {
pname = "pyzmq";
version = "16.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "0322543fff5ab6f87d11a8a099c4c07dd8a1719040084b6ce9162bcdf5c45c9d";
};
checkInputs = [ pytest tornado ];
buildInputs = [ zeromq3];
propagatedBuildInputs = [ py ];
# Disable broken test
# https://github.com/zeromq/pyzmq/issues/799
checkPhase = ''
py.test $out/${python.sitePackages}/zmq/ -k "not test_large_send and not test_recv_json_cancelled"
'';
}

View file

@ -15995,21 +15995,7 @@ EOF
};
};
pyzmq = buildPythonPackage rec {
name = "pyzmq-16.0.2";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pyzmq/${name}.tar.gz";
sha256 = "0322543fff5ab6f87d11a8a099c4c07dd8a1719040084b6ce9162bcdf5c45c9d";
};
buildInputs = with self; [ pkgs.zeromq3 pytest tornado ];
propagatedBuildInputs = [ self.py ];
# Disable broken test
# https://github.com/zeromq/pyzmq/issues/799
checkPhase = ''
py.test $out/${python.sitePackages}/zmq/ -k "not test_large_send and not test_recv_json_cancelled"
'';
};
pyzmq = callPackage ../development/python-modules/pyzmq { };
testfixtures = callPackage ../development/python-modules/testfixtures {};