nixpkgs/pkgs/development/python-modules/aioftp/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

52 lines
953 B
Nix

{ lib
, stdenv
, async-timeout
, buildPythonPackage
, fetchPypi
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, siosocks
, trustme
}:
buildPythonPackage rec {
pname = "aioftp";
version = "0.21.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-KLsm1GFsfDgaFUMoH5hwUbjS0dW/rwI9nn4sIQXFG7k=";
};
propagatedBuildInputs = [
siosocks
];
nativeCheckInputs = [
async-timeout
pytest-asyncio
pytestCheckHook
trustme
];
disabledTests = lib.optionals stdenv.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://github.com/aio-libs/aioftp";
license = licenses.asl20;
maintainers = with maintainers; [ costrouc ];
};
}