3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aioftp/default.nix
2020-08-29 10:22:11 -07:00

44 lines
774 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytest-asyncio
, pytestcov
, trustme
, async-timeout
}:
buildPythonPackage rec {
pname = "aioftp";
version = "0.17.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "8433ff21317e71ef1f4d8cb8f7fe58365c04b5174142d9643e22343cfb35da1b";
};
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 ];
};
}