From ea658301e1c0fe55f82489d05ecc84b887b7d762 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Jun 2022 08:45:19 +0200 Subject: [PATCH] python310Packages.s3fs: disable on older Python releases --- .../python-modules/s3fs/default.nix | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/s3fs/default.nix b/pkgs/development/python-modules/s3fs/default.nix index 10e2c3b51608..18332b234154 100644 --- a/pkgs/development/python-modules/s3fs/default.nix +++ b/pkgs/development/python-modules/s3fs/default.nix @@ -1,19 +1,24 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, docutils +{ lib +, stdenv , aiobotocore +, aiohttp +, buildPythonPackage +, docutils +, fetchPypi , fsspec +, pythonOlder }: buildPythonPackage rec { pname = "s3fs"; version = "2022.5.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-tAo8v6+Ay6uvDjMjMRF8ysaSkO/aw0cYT7OrYAP3BGU="; + hash = "sha256-tAo8v6+Ay6uvDjMjMRF8ysaSkO/aw0cYT7OrYAP3BGU="; }; buildInputs = [ @@ -22,6 +27,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ aiobotocore + aiohttp fsspec ]; @@ -30,7 +36,9 @@ buildPythonPackage rec { # pythonPackages. doCheck = false; - pythonImportsCheck = [ "s3fs" ]; + pythonImportsCheck = [ + "s3fs" + ]; meta = with lib; { broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;