2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, python
|
|
|
|
, fetchPypi
|
|
|
|
, msrest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.1.25";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "vsts";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "15sgwqa72ynpahj101r2kc15s3dnsafg5gqx0sz3hnqz29h925ys";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ msrest ];
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "msrest>=0.6.0,<0.7.0" "msrest"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Tests are highly impure
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -c 'import vsts.version; print(vsts.version.VERSION)'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python APIs for interacting with and managing Azure DevOps";
|
|
|
|
homepage = "https://github.com/microsoft/azure-devops-python-api";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|