depot/third_party/nixpkgs/pkgs/development/python-modules/aioftp/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

43 lines
774 B
Nix

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