2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, adlfs
|
|
|
|
, azure-identity
|
|
|
|
, buildPythonPackage
|
|
|
|
, dvc-objects
|
|
|
|
, fetchPypi
|
|
|
|
, knack
|
|
|
|
, pythonRelaxDepsHook
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools-scm
|
|
|
|
}:
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-azure";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.1.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-UsvHDVQUtQIZs9sKFvaK0l2rp24/Igrr5OSbPGSYriA=";
|
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
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
adlfs
|
|
|
|
azure-identity
|
|
|
|
dvc-objects
|
|
|
|
knack
|
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_azure"
|
|
|
|
# ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-02 11:29:13 +00:00
|
|
|
description = "Azure plugin for dvc";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://pypi.org/project/dvc-azure/${version}";
|
|
|
|
changelog = "https://github.com/iterative/dvc-azure/releases/tag/${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ melling ];
|
|
|
|
};
|
|
|
|
}
|