mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
37 lines
695 B
Nix
37 lines
695 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, paramiko
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scp";
|
|
version = "0.14.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "713f117413bbd616a1a7da8f07db9adcd835ce73d8585fb469ea5b5785f92e4d";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
paramiko
|
|
];
|
|
|
|
checkPhase = ''
|
|
SCPPY_PORT=10022 ${python.interpreter} test.py
|
|
'';
|
|
|
|
#The Pypi package doesn't include the test
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "scp" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/jbardin/scp.py";
|
|
description = "SCP module for paramiko";
|
|
license = licenses.lgpl21Only;
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
};
|
|
}
|