mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +00:00
44 lines
774 B
Nix
44 lines
774 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, pytest
|
|
, pytest-asyncio
|
|
, pytestcov
|
|
, trustme
|
|
, async-timeout
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioftp";
|
|
version = "0.16.0";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "94648d17dd3ca44614b59e8f795991b447258d82aa1b4cfecc0aceccf01b7495";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytest
|
|
pytest-asyncio
|
|
pytestcov
|
|
trustme
|
|
async-timeout
|
|
];
|
|
|
|
doCheck = false; # requires siosocks, not packaged yet
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
pythonImportsCheck = [ "aioftp" ];
|
|
|
|
meta = with lib; {
|
|
description = "Ftp client/server for asyncio";
|
|
homepage = "https://github.com/aio-libs/aioftp";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|