mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 13:53:24 +00:00
33afbf39f6
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.
34 lines
680 B
Nix
34 lines
680 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, paramiko
|
|
, pytestCheckHook
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.4.0";
|
|
pname = "sshtunnel";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-58sOp3Tbgb+RhE2yLecqQKro97D5u5ug9mbUdO9r+fw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ paramiko ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook mock ];
|
|
|
|
# disable impure tests
|
|
disabledTests = [
|
|
"test_get_keys"
|
|
"connect_via_proxy"
|
|
"read_ssh_config"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Pure python SSH tunnels";
|
|
homepage = "https://github.com/pahaz/sshtunnel";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|