35 lines
655 B
Nix
35 lines
655 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, paramiko
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scp";
|
|
version = "0.13.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e60948dd3e1aa13da21aa1bf8a025fabbbc2816ed04f1a1272410247d1a86f15";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
paramiko
|
|
];
|
|
|
|
checkPhase = ''
|
|
SCPPY_PORT=10022 ${python.interpreter} test.py
|
|
'';
|
|
|
|
#The Pypi package doesn't include the test
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/jbardin/scp.py";
|
|
description = "SCP module for paramiko";
|
|
license = licenses.lgpl3;
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
};
|
|
}
|