pythonPackages.paramiko: 2.1.1 -> 2.4.2 refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-10 14:27:12 -04:00 committed by Frederik Rietdijk
parent e8c6b66e75
commit d51311861c
2 changed files with 49 additions and 37 deletions

View File

@ -0,0 +1,48 @@
{ pkgs
, buildPythonPackage
, fetchPypi
, cryptography
, bcrypt
, pynacl
, pyasn1
, python
, pytest
, pytest-relaxed
, mock
, isPyPy
, isPy33
}:
buildPythonPackage rec {
pname = "paramiko";
version = "2.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "a8975a7df3560c9f1e2b43dc54ebd40fd00a7017392ca5445ce7df409f900fcb";
};
checkInputs = [ pytest mock pytest-relaxed ];
propagatedBuildInputs = [ bcrypt cryptography pynacl pyasn1 ];
__darwinAllowLocalNetworking = true;
# 2 sftp tests fail (skip for now)
checkPhase = ''
pytest tests --ignore=tests/test_sftp.py
'';
meta = with pkgs.lib; {
homepage = "https://github.com/paramiko/paramiko/";
description = "Native Python SSHv2 protocol library";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ aszlig ];
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.
'';
};
}

View File

@ -9112,43 +9112,7 @@ in {
}; };
}; };
paramiko = buildPythonPackage rec { paramiko = callPackage ../development/python-modules/paramiko { };
pname = "paramiko";
version = "2.1.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0xdmamqgx2ymhdm46q8flpj4fncj4wv2dqxzz0bc2dh7mnkss7fm";
};
propagatedBuildInputs = with self; [ cryptography pyasn1 ];
__darwinAllowLocalNetworking = true;
# https://github.com/paramiko/paramiko/issues/449
doCheck = !(isPyPy || isPy33);
checkPhase = ''
# test_util needs to resolve an hostname, thus failing when the fw blocks it
sed '/UtilTest/d' -i test.py
${python}/bin/${python.executable} test.py --no-sftp --no-big-file
'';
meta = {
homepage = "https://github.com/paramiko/paramiko/";
description = "Native Python SSHv2 protocol library";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ aszlig ];
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.
'';
};
};
parameterized = callPackage ../development/python-modules/parameterized { }; parameterized = callPackage ../development/python-modules/parameterized { };