depot/third_party/nixpkgs/pkgs/development/python-modules/dvc-s3/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

58 lines
1.1 KiB
Nix

{
lib,
aiobotocore,
boto3,
buildPythonPackage,
dvc-objects,
fetchPypi,
flatten-dict,
s3fs,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "dvc-s3";
version = "3.2.0";
pyproject = true;
src = fetchPypi {
pname = "dvc_s3";
inherit version;
hash = "sha256-HQEqwdzkdlmYb5GBI7SJMc+bNCmrC0oi/UsCRIGFzrY=";
};
# Prevent circular dependency
pythonRemoveDeps = [ "dvc" ];
# dvc-s3 uses boto3 directly, we add in propagatedBuildInputs
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "aiobotocore[boto3]" "aiobotocore"
'';
build-system = [ setuptools-scm ];
dependencies = [
aiobotocore
boto3
dvc-objects
flatten-dict
s3fs
];
# Network access is needed for tests
doCheck = false;
# Circular dependency
# pythonImportsCheck = [
# "dvc_s3"
# ];
meta = with lib; {
description = "s3 plugin for dvc";
homepage = "https://pypi.org/project/dvc-s3/${version}";
changelog = "https://github.com/iterative/dvc-s3/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ melling ];
};
}