nixpkgs/pkgs/development/python-modules/aioftp/default.nix

44 lines
774 B
Nix
Raw Normal View History

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
];
doCheck = false; # requires siosocks, not packaged yet
2019-07-15 18:12:56 +02:00
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "aioftp" ];
2019-07-15 18:12:56 +02:00
meta = with lib; {
description = "Ftp client/server for asyncio";
homepage = "https://github.com/aio-libs/aioftp";
2019-07-15 18:12:56 +02:00
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}