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.
30 lines
827 B
Nix
30 lines
827 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
, requests, six
|
|
, backports_unittest-mock, pytestCheckHook, pytest-runner }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sseclient";
|
|
version = "0.0.27";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b2fe534dcb33b1d3faad13d60c5a7c718e28f85987f2a034ecf5ec279918c11c";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
# some tests use python3 strings
|
|
doCheck = !isPy27;
|
|
nativeCheckInputs = [ backports_unittest-mock pytestCheckHook pytest-runner ];
|
|
|
|
# tries to open connection to wikipedia
|
|
disabledTests = [ "event_stream" ];
|
|
|
|
meta = with lib; {
|
|
description = "Client library for reading Server Sent Event streams";
|
|
homepage = "https://github.com/btubbs/sseclient";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
};
|
|
}
|