Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / scp / default.nix
blobd85d8f1dac75e396c6041ba053572aa9ac15252c
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , paramiko
5 , python
6 }:
8 buildPythonPackage rec {
9   pname = "scp";
10   version = "0.14.5";
12   src = fetchPypi {
13     inherit pname version;
14     hash = "sha256-ZPABWJmz0hLLgIjn1A668Ghoif8OJD1cEkLv6LUPBT4=";
15   };
17   propagatedBuildInputs = [
18     paramiko
19   ];
21   checkPhase = ''
22     SCPPY_PORT=10022 ${python.interpreter} test.py
23   '';
25   #The Pypi package doesn't include the test
26   doCheck = false;
28   pythonImportsCheck = [ "scp" ];
30   meta = with lib; {
31     homepage = "https://github.com/jbardin/scp.py";
32     description = "SCP module for paramiko";
33     license = licenses.lgpl21Only;
34     maintainers = with maintainers; [ xnaveira ];
35   };