depot/third_party/nixpkgs/pkgs/development/python-modules/scp/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

34 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 ];
};
}