python310Packages.s3fs: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-06-02 08:45:19 +02:00 committed by Jonathan Ringer
parent 32a2f6fe6f
commit ea658301e1
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -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;