2018-03-02 14:24:00 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, paramiko
|
2018-03-02 14:34:20 +00:00
|
|
|
, python
|
2018-03-02 14:24:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scp";
|
|
|
|
version = "0.10.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "18f59e48df67fac0b069591609a0f4d50d781a101ddb8ec705f0c2e3501a8386";
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
|
2018-03-02 14:24:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|