depot/third_party/nixpkgs/pkgs/development/python-modules/azure-mgmt-commerce/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

46 lines
1,006 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, msrestazure
, azure-common
, azure-mgmt-nspkg
, python
, isPy3k
}:
buildPythonPackage rec {
pname = "azure-mgmt-commerce";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1hw4crkgb72ps85m2kz9kf8p2wg9qmaagk3z5nydva9g6bnq93n4";
};
propagatedBuildInputs = [
msrestazure
azure-common
azure-mgmt-nspkg
];
prePatch = ''
rm -f azure_bdist_wheel.py tox.ini
substituteInPlace setup.py \
--replace "wheel==0.30.0" "wheel"
sed -i "/azure-namespace-package/c\ " setup.cfg
'';
pythonNamespaces = [ "azure.mgmt" ];
# has no tests
doCheck = false;
pythonImportsCheck = [ "azure.mgmt.commerce" ];
meta = with lib; {
description = "This is the Microsoft Azure Commerce Management Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ mwilsoninsight jonringer ];
};
}