mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
Inactive since 2015, see https://github.com/NixOS/nixpkgs/issues/576595 Assisted-by: Claude Code (claude-opus-5-5)
41 lines
949 B
Nix
41 lines
949 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
azure-nspkg,
|
|
isPyPy,
|
|
setuptools,
|
|
python,
|
|
isPy3k,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
version = "1.1.28";
|
|
pyproject = true;
|
|
pname = "azure-common";
|
|
disabled = isPyPy;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
extension = "zip";
|
|
hash = "sha256-SsDNMhTja2obakQmhnIqXYzESWA6qDPz8PQL2oNnBKM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ azure-nspkg ] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup
|
|
|
|
postInstall = lib.optionalString (!isPy3k) ''
|
|
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/${python.sitePackages}"/azure/__init__.py
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "This is the Microsoft Azure common code";
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ maxwilson ];
|
|
};
|
|
})
|