2019-07-15 17:12:56 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestcov
|
|
|
|
, trustme
|
|
|
|
, async-timeout
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioftp";
|
2020-07-18 01:26:01 +01:00
|
|
|
version = "0.16.1";
|
2019-07-15 17:12:56 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-18 01:26:01 +01:00
|
|
|
sha256 = "0rqzg4w86zch0cjslkndv02gmpi0r27lsy1qi1irpa8hqfhh23ja";
|
2019-07-15 17:12:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytest-asyncio
|
|
|
|
pytestcov
|
|
|
|
trustme
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
2020-06-20 17:59:50 +01:00
|
|
|
doCheck = false; # requires siosocks, not packaged yet
|
2019-07-15 17:12:56 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2020-06-20 17:59:50 +01:00
|
|
|
pythonImportsCheck = [ "aioftp" ];
|
|
|
|
|
2019-07-15 17:12:56 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Ftp client/server for asyncio";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/aio-libs/aioftp";
|
2019-07-15 17:12:56 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|