1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, paramiko
5, python
6}:
7
8buildPythonPackage rec {
9 pname = "scp";
10 version = "0.10.2";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "18f59e48df67fac0b069591609a0f4d50d781a101ddb8ec705f0c2e3501a8386";
15 };
16
17 propagatedBuildInputs = [
18 paramiko
19 ];
20
21 checkPhase = ''
22 SCPPY_PORT=10022 ${python.interpreter} test.py
23 '';
24
25 #The Pypi package doesn't include the test
26 doCheck = false;
27
28 meta = with stdenv.lib; {
29 homepage = https://github.com/jbardin/scp.py;
30 description = "SCP module for paramiko";
31 license = licenses.lgpl3;
32 maintainers = with maintainers; [ xnaveira ];
33 };
34}