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