nixpkgs-suyu/pkgs/development/python-modules/paramiko/default.nix
aszlig 3873e0d191
Unmaintain packages I don't use anymore
Just got a reminder via the vulnerability roundup[1] that I'm still
listed as maintainer for Synergy, even though I stopped using it years
ago.

I'll also take this as an opportunity to remove myself from other
packages which I stopped using and thus most certainly won't be able to
maintain. The latter is already hard enough these days for software
which I *do* use.

[1]: https://github.com/NixOS/nixpkgs/issues/94007

Signed-off-by: aszlig <aszlig@nix.build>
2020-07-28 02:08:36 +02:00

48 lines
1.2 KiB
Nix

{ pkgs
, buildPythonPackage
, fetchPypi
, cryptography
, bcrypt
, invoke
, pynacl
, pyasn1
, pytest
, pytest-relaxed
, mock
}:
buildPythonPackage rec {
pname = "paramiko";
version = "2.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "920492895db8013f6cc0179293147f830b8c7b21fdfc839b6bad760c27459d9f";
};
checkInputs = [ invoke pytest mock pytest-relaxed ];
propagatedBuildInputs = [ bcrypt cryptography pynacl pyasn1 ];
__darwinAllowLocalNetworking = true;
# 2 sftp tests fail (skip for now)
# test_config relies on artifacts to be to downloaded
checkPhase = ''
pytest tests \
--ignore=tests/test_sftp.py \
--ignore=tests/test_config.py
'';
meta = with pkgs.lib; {
homepage = "https://github.com/paramiko/paramiko/";
description = "Native Python SSHv2 protocol library";
license = licenses.lgpl21Plus;
longDescription = ''
This is a library for making SSH2 connections (client or server).
Emphasis is on using SSH2 as an alternative to SSL for making secure
connections between python scripts. All major ciphers and hash methods
are supported. SFTP client and server mode are both supported too.
'';
};
}