mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
siosocks,
|
|
trustme,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioftp";
|
|
version = "0.23.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-uA6t2MqV0ru8+r594Vy+AawRey50Z3FzdN5Ge62TVws=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
optional-dependencies = {
|
|
socks = [ siosocks ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
async-timeout
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
trustme
|
|
] ++ lib.flatten (builtins.attrValues 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 = with lib; {
|
|
description = "Python FTP client/server for asyncio";
|
|
homepage = "https://aioftp.readthedocs.io/";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|