nixpkgs-suyu/pkgs/development/python-modules/scp/default.nix

35 lines
655 B
Nix
Raw Normal View History

{ lib
2018-03-02 15:24:00 +01:00
, buildPythonPackage
, fetchPypi
, paramiko
, python
2018-03-02 15:24:00 +01:00
}:
buildPythonPackage rec {
pname = "scp";
2020-11-04 15:04:24 +01:00
version = "0.13.3";
2018-03-02 15:24:00 +01:00
src = fetchPypi {
inherit pname version;
2020-11-04 15:04:24 +01:00
sha256 = "8bd748293d7362073169b96ce4b8c4f93bcc62cfc5f7e1d949e01e406a025bd4";
2018-03-02 15:24:00 +01:00
};
propagatedBuildInputs = [
2018-03-02 15:24:00 +01:00
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";
2018-03-02 15:24:00 +01:00
license = licenses.lgpl3;
maintainers = with maintainers; [ xnaveira ];
};
}