1{ lib
2, buildPythonPackage
3, fetchPypi
4, paramiko
5, python
6}:
7
8buildPythonPackage rec {
9 pname = "scp";
10 version = "0.14.4";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "sha256-VGmbkstorjS1koxIqIjquXIqISUCy6iap5W9Vll1Bb0=";
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 pythonImportsCheck = [ "scp" ];
29
30 meta = with lib; {
31 homepage = "https://github.com/jbardin/scp.py";
32 description = "SCP module for paramiko";
33 license = licenses.lgpl21Only;
34 maintainers = with maintainers; [ xnaveira ];
35 };
36}