2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-03-02 14:24:00 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, paramiko
|
2018-03-02 14:34:20 +00:00
|
|
|
, python
|
2018-03-02 14:24:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scp";
|
2020-11-04 14:04:24 +00:00
|
|
|
version = "0.13.3";
|
2018-03-02 14:24:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:04:24 +00:00
|
|
|
sha256 = "8bd748293d7362073169b96ce4b8c4f93bcc62cfc5f7e1d949e01e406a025bd4";
|
2018-03-02 14:24:00 +00:00
|
|
|
};
|
|
|
|
|
2018-03-02 14:34:20 +00:00
|
|
|
propagatedBuildInputs = [
|
2018-03-02 14:24:00 +00:00
|
|
|
paramiko
|
|
|
|
];
|
|
|
|
|
2018-03-02 14:34:20 +00:00
|
|
|
checkPhase = ''
|
|
|
|
SCPPY_PORT=10022 ${python.interpreter} test.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
#The Pypi package doesn't include the test
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jbardin/scp.py";
|
2018-03-02 14:34:20 +00:00
|
|
|
description = "SCP module for paramiko";
|
2018-03-02 14:24:00 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
|
|
};
|
|
|
|
}
|