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

35 lines
651 B
Nix
Raw Normal View History

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