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

44 lines
776 B
Nix
Raw Normal View History

2019-07-15 17:12:56 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytest-asyncio
, pytest-cov
2019-07-15 17:12:56 +01:00
, trustme
, async-timeout
}:
buildPythonPackage rec {
pname = "aioftp";
version = "0.19.0";
2019-07-15 17:12:56 +01:00
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "d1c2571764c48e6de1b02952022c3c3b3da1f10806cb342ec7b1fa9b109e9902";
2019-07-15 17:12:56 +01:00
};
checkInputs = [
pytest
pytest-asyncio
pytest-cov
2019-07-15 17:12:56 +01:00
trustme
async-timeout
];
doCheck = false; # requires siosocks, not packaged yet
2019-07-15 17:12:56 +01:00
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "aioftp" ];
2019-07-15 17:12:56 +01:00
meta = with lib; {
description = "Ftp client/server for asyncio";
homepage = "https://github.com/aio-libs/aioftp";
2019-07-15 17:12:56 +01:00
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}