python3Packages.azure-mgmt-commerce: use fetchpypi
This commit is contained in:
parent
8a75ad4925
commit
b18cf1b35a
@ -1,6 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchPypi
|
||||||
, msrestazure
|
, msrestazure
|
||||||
, azure-common
|
, azure-common
|
||||||
, azure-mgmt-nspkg
|
, azure-mgmt-nspkg
|
||||||
@ -8,34 +8,39 @@
|
|||||||
, isPy3k
|
, isPy3k
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage rec {
|
||||||
pname = "azure-mgmt-commerce";
|
pname = "azure-mgmt-commerce";
|
||||||
version = "1.0.1";
|
version = "1.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchPypi {
|
||||||
owner = "Azure";
|
inherit pname version;
|
||||||
repo = "azure-sdk-for-python";
|
extension = "zip";
|
||||||
rev = "ee5b47525d6c1eae3b1fd5f65b0421eab62a6e6f";
|
sha256 = "1hw4crkgb72ps85m2kz9kf8p2wg9qmaagk3z5nydva9g6bnq93n4";
|
||||||
sha256 = "0xzdn7da5c3q5knh033vbsqk36vwbm75cx8vf10x0yj58krb4kn4";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
cd ./azure-mgmt-commerce
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
msrestazure
|
msrestazure
|
||||||
azure-common
|
azure-common
|
||||||
azure-mgmt-nspkg
|
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
|
# has no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "azure.mgmt.commerce" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "This is the Microsoft Azure Commerce Management Client Library";
|
description = "This is the Microsoft Azure Commerce Management Client Library";
|
||||||
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ mwilsoninsight ];
|
maintainers = with maintainers; [ mwilsoninsight jonringer ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user