nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5, docutils
6, aiobotocore
7, fsspec
8}:
9
10buildPythonPackage rec {
11 pname = "s3fs";
12 version = "2022.2.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-RhHQ9+QeW8nawwCQcOCtN9qHpC9t73W0gTwG9+QEpzg=";
17 };
18
19 buildInputs = [
20 docutils
21 ];
22
23 propagatedBuildInputs = [
24 aiobotocore
25 fsspec
26 ];
27
28 # Depends on `moto` which has a long dependency chain with exact
29 # version requirements that can't be made to work with current
30 # pythonPackages.
31 doCheck = false;
32
33 pythonImportsCheck = [ "s3fs" ];
34
35 meta = with lib; {
36 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
37 homepage = "https://github.com/dask/s3fs/";
38 description = "A Pythonic file interface for S3";
39 license = licenses.bsd3;
40 maintainers = with maintainers; [ teh ];
41 };
42}