File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed
pkgs/development/python-modules/aioftp Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change 66, pytest-asyncio
77, pytestCheckHook
88, pythonOlder
9+ , setuptools
910, siosocks
1011, trustme
1112} :
1213
1314buildPythonPackage 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 } ;
You can’t perform that action at this time.
0 commit comments