depot/third_party/nixpkgs/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

51 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
boto3,
botocore,
poetry-core,
snakemake,
snakemake-interface-storage-plugins,
snakemake-interface-common,
urllib3,
}:
buildPythonPackage rec {
pname = "snakemake-storage-plugin-s3";
version = "0.2.11";
format = "pyproject";
src = fetchFromGitHub {
owner = "snakemake";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-pAMrWJe4+PWHglZ/C83Af+uHBg9wupfSlH4W8CvO9as=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace ">=2.0,<2.2" "*"
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
boto3
botocore
snakemake-interface-storage-plugins
snakemake-interface-common
urllib3
];
nativeCheckInputs = [ snakemake ];
pythonImportsCheck = [ "snakemake_storage_plugin_s3" ];
meta = with lib; {
description = "Snakemake storage plugin for S3 API storage (AWS S3, MinIO, etc.)";
homepage = "https://github.com/snakemake/snakemake-storage-plugin-s3";
license = licenses.mit;
maintainers = with maintainers; [ veprbl ];
};
}