diff --git a/pkgs/development/python-modules/dvc-gs/default.nix b/pkgs/development/python-modules/dvc-gs/default.nix new file mode 100644 index 000000000000..0f29bc8a3554 --- /dev/null +++ b/pkgs/development/python-modules/dvc-gs/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, dvc-objects +, fetchPypi +, gcsfs +, pythonRelaxDepsHook +, setuptools-scm }: + +buildPythonPackage rec { + pname = "dvc-gs"; + version = "2.21.0"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-MGNDEhJJGSQIPDXGv/y4u1UHnh4HnNbKtQbGHys0dSA="; + }; + + # Prevent circular dependency + pythonRemoveDeps = [ "dvc" ]; + + nativeBuildInputs = [ setuptools-scm pythonRelaxDepsHook ]; + + propagatedBuildInputs = [ gcsfs dvc-objects ]; + + # Network access is needed for tests + doCheck = false; + + pythonCheckImports = [ "dvc_gs" ]; + + meta = with lib; { + description = "gs plugin for dvc"; + homepage = "https://pypi.org/project/dvc-gs/version"; + changelog = "https://github.com/iterative/dvc-gs/releases/tag/${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ melling ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7079b2867e89..eb439e926619 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2999,6 +2999,8 @@ self: super: with self; { dvc-data = callPackage ../development/python-modules/dvc-data { }; + dvc-gs = callPackage ../development/python-modules/dvc-gs { }; + dvc-http = callPackage ../development/python-modules/dvc-http { }; dvc-objects = callPackage ../development/python-modules/dvc-objects { };