python3Packages.dvc-azure: init at 2.21.0

This commit is contained in:
Matt Melling 2023-01-29 20:02:34 +00:00 committed by Fabian Affolter
parent 18f2c66130
commit 6cbbb21b6b
3 changed files with 44 additions and 2 deletions

View File

@ -80,8 +80,7 @@ python3.pkgs.buildPythonApplication rec {
boto3
s3fs
] ++ lib.optionals enableAzure [
azure-identity
knack
dvc-azure
] ++ lib.optionals enableSSH [
bcrypt
] ++ lib.optionals (pythonOlder "3.8") [

View File

@ -0,0 +1,41 @@
{ lib
, adlfs
, azure-identity
, buildPythonPackage
, fetchPypi
, knack
, pythonRelaxDepsHook
, setuptools-scm }:
buildPythonPackage rec {
pname = "dvc-azure";
version = "2.21.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-VN3QSGb4cLhxX8JV1Pg4/449SJOWv9Tu3kcDGbDwAYw=";
};
# Prevent circular dependency
pythonRemoveDeps = [ "dvc" ];
nativeBuildInputs = [ setuptools-scm pythonRelaxDepsHook ];
propagatedBuildInputs = [
adlfs azure-identity knack
];
# Network access is needed for tests
doCheck = false;
pythonCheckImports = [ "dvc_azure" ];
meta = with lib; {
description = "azure plugin for dvc";
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 ];
};
}

View File

@ -2997,6 +2997,8 @@ self: super: with self; {
durus = callPackage ../development/python-modules/durus { };
dvc-azure = callPackage ../development/python-modules/dvc-azure { };
dvc-data = callPackage ../development/python-modules/dvc-data { };
dvc-gs = callPackage ../development/python-modules/dvc-gs { };