2018-03-02 15:24:00 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, paramiko
|
2018-03-02 15:34:20 +01:00
|
|
|
, python
|
2018-03-02 15:24:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scp";
|
2018-06-12 18:47:06 +02:00
|
|
|
version = "0.11.0";
|
2018-03-02 15:24:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 18:47:06 +02:00
|
|
|
sha256 = "ea095dd1d0e131874bc9930c3965bce3d1d70be5adb2a30d811fcaea4708a9ee";
|
2018-03-02 15:24:00 +01:00
|
|
|
};
|
|
|
|
|
2018-03-02 15:34:20 +01:00
|
|
|
propagatedBuildInputs = [
|
2018-03-02 15:24:00 +01:00
|
|
|
paramiko
|
|
|
|
];
|
|
|
|
|
2018-03-02 15:34:20 +01:00
|
|
|
checkPhase = ''
|
|
|
|
SCPPY_PORT=10022 ${python.interpreter} test.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
#The Pypi package doesn't include the test
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-03-02 15:24:00 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/jbardin/scp.py;
|
2018-03-02 15:34:20 +01:00
|
|
|
description = "SCP module for paramiko";
|
2018-03-02 15:24:00 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
|
|
};
|
|
|
|
}
|