Skip to content

Commit fd61dfe

Browse files
authored
Merge pull request #277755 from fabaff/aioftp-bump
python311Packages.aioftp: 0.21.4 -> 0.22.2
2 parents 9460cc8 + d71152a commit fd61dfe

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

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

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,48 @@
66
, pytest-asyncio
77
, pytestCheckHook
88
, pythonOlder
9+
, setuptools
910
, siosocks
1011
, trustme
1112
}:
1213

1314
buildPythonPackage rec {
1415
pname = "aioftp";
15-
version = "0.21.4";
16-
format = "setuptools";
16+
version = "0.22.2";
17+
pyproject = true;
1718

18-
disabled = pythonOlder "3.7";
19+
disabled = pythonOlder "3.11";
1920

2021
src = fetchPypi {
2122
inherit pname version;
22-
hash = "sha256-KLsm1GFsfDgaFUMoH5hwUbjS0dW/rwI9nn4sIQXFG7k=";
23+
hash = "sha256-YcHNpxpldxW0GZRCt9t0XcW+rgWGW43w3QFMBSQK3LA=";
2324
};
2425

26+
postPatch = ''
27+
substituteInPlace pyproject.toml \
28+
--replace " --cov" ""
29+
'';
30+
31+
nativeBuildInputs = [
32+
setuptools
33+
];
34+
2535
propagatedBuildInputs = [
2636
siosocks
2737
];
2838

39+
passthru.optional-dependencies = {
40+
socks = [
41+
siosocks
42+
];
43+
};
44+
2945
nativeCheckInputs = [
3046
async-timeout
3147
pytest-asyncio
3248
pytestCheckHook
3349
trustme
34-
];
50+
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
3551

3652
disabledTests = lib.optionals stdenv.isDarwin [
3753
# uses 127.0.0.2, which macos doesn't like
@@ -44,7 +60,7 @@ buildPythonPackage rec {
4460

4561
meta = with lib; {
4662
description = "Python FTP client/server for asyncio";
47-
homepage = "https://github.com/aio-libs/aioftp";
63+
homepage = "https://aioftp.readthedocs.io/";
4864
license = licenses.asl20;
4965
maintainers = with maintainers; [ ];
5066
};

0 commit comments

Comments
 (0)