Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / snakemake-storage-plugin-s3 / default.nix
blob9f194eb253570cb0b0ad8f55b2a0c8206f293adc
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , boto3
5 , botocore
6 , poetry-core
7 , snakemake
8 , snakemake-interface-storage-plugins
9 , snakemake-interface-common
10 , urllib3
13 buildPythonPackage rec {
14   pname = "snakemake-storage-plugin-s3";
15   version = "0.2.10";
16   format = "pyproject";
18   src = fetchFromGitHub {
19     owner = "snakemake";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-k21DRQdSUFkdwNb7MZJmClhIg+pdSc7H6FkDrbf4DT8=";
23   };
25   postPatch = ''
26     substituteInPlace pyproject.toml \
27       --replace ">=2.0,<2.2" "*"
28   '';
30   nativeBuildInputs = [
31     poetry-core
32   ];
34   propagatedBuildInputs = [
35     boto3
36     botocore
37     snakemake-interface-storage-plugins
38     snakemake-interface-common
39     urllib3
40   ];
42   nativeCheckInputs = [
43     snakemake
44   ];
46   pythonImportsCheck = [ "snakemake_storage_plugin_s3" ];
48   meta = with lib; {
49     description = "A Snakemake storage plugin for S3 API storage (AWS S3, MinIO, etc.)";
50     homepage = "https://github.com/snakemake/snakemake-storage-plugin-s3";
51     license = licenses.mit;
52     maintainers = with maintainers; [ veprbl ];
53   };