2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, dvc-objects
|
|
|
|
, fetchPypi
|
|
|
|
, gcsfs
|
|
|
|
, pythonRelaxDepsHook
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools-scm
|
|
|
|
}:
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-gs";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.0.1";
|
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-5UMKKX+4GCNm98S8kQsasQTY5cwi9hGhm84FFl3/7NQ=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Prevent circular dependency
|
2024-01-02 11:29:13 +00:00
|
|
|
pythonRemoveDeps = [
|
|
|
|
"dvc"
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
gcsfs
|
|
|
|
dvc-objects
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
# Network access is needed for tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
# Circular dependency
|
|
|
|
# pythonImportsCheck = [
|
|
|
|
# "dvc_gs"
|
|
|
|
# ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|