Merge pull request #306203 from fabaff/azure-refactor
python312Packages.azure-cosmos: refactor
This commit is contained in:
commit
422b69f54c
|
@ -1,30 +1,43 @@
|
||||||
{ buildPythonPackage
|
{
|
||||||
, lib
|
lib,
|
||||||
, fetchPypi
|
azure-core,
|
||||||
, six
|
buildPythonPackage,
|
||||||
, requests
|
fetchPypi,
|
||||||
|
pythonOlder,
|
||||||
|
setuptools,
|
||||||
|
typing-extensions,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "4.6.0";
|
|
||||||
format = "setuptools";
|
|
||||||
pname = "azure-cosmos";
|
pname = "azure-cosmos";
|
||||||
|
version = "4.6.0";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-2uxqwgHGRzsJK2Ku5x44G+62w6jcNhJJgytwSMTwYeI=";
|
hash = "sha256-2uxqwgHGRzsJK2Ku5x44G+62w6jcNhJJgytwSMTwYeI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six requests ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
azure-core
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
pythonNamespaces = [ "azure" ];
|
pythonNamespaces = [ "azure" ];
|
||||||
|
|
||||||
# requires an active Azure Cosmos service
|
# Requires an active Azure Cosmos service
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "azure.cosmos" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Azure Cosmos DB API";
|
description = "Azure Cosmos DB API";
|
||||||
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos";
|
||||||
|
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-cosmos_${version}/sdk/cosmos/azure-cosmos/CHANGELOG.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ jonringer ];
|
maintainers = with maintainers; [ jonringer ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user