02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
37 lines
705 B
Nix
37 lines
705 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, paramiko
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scp";
|
|
version = "0.14.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ZPABWJmz0hLLgIjn1A668Ghoif8OJD1cEkLv6LUPBT4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|