Files
nixpkgs/pkgs/development/python-modules/aioftp/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

60 lines
1.2 KiB
Nix

{
lib,
stdenv,
async-timeout,
buildPythonPackage,
fetchPypi,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
pythonOlder,
setuptools,
siosocks,
trustme,
}:
buildPythonPackage rec {
pname = "aioftp";
version = "0.27.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-fASMMiAIF5bFmDKm/Z/Y+tl+POwSpQvjq8zy3LvrJho=";
};
build-system = [ setuptools ];
optional-dependencies = {
socks = [ siosocks ];
};
nativeCheckInputs = [
async-timeout
pytest-asyncio
pytest-cov-stub
pytest-mock
pytestCheckHook
trustme
]
++ lib.concatAttrValues optional-dependencies;
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# uses 127.0.0.2, which macos doesn't like
"test_pasv_connection_pasv_forced_response_address"
];
pythonImportsCheck = [ "aioftp" ];
meta = {
description = "Python FTP client/server for asyncio";
homepage = "https://aioftp.readthedocs.io/";
changelog = "https://github.com/aio-libs/aioftp/blob/${version}/history.rst";
license = lib.licenses.asl20;
maintainers = [ ];
};
}