1{ buildPythonPackage
2, lib
3, python
4, fetchPypi
5, msrest
6}:
7
8buildPythonPackage rec {
9 version = "0.1.25";
10 pname = "vsts";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "15sgwqa72ynpahj101r2kc15s3dnsafg5gqx0sz3hnqz29h925ys";
15 };
16
17 propagatedBuildInputs = [ msrest ];
18
19 postPatch = ''
20 substituteInPlace setup.py --replace "msrest>=0.6.0,<0.7.0" "msrest"
21 '';
22
23 # Tests are highly impure
24 checkPhase = ''
25 ${python.interpreter} -c 'import vsts.version; print(vsts.version.VERSION)'
26 '';
27
28 meta = with lib; {
29 description = "Python APIs for interacting with and managing Azure DevOps";
30 homepage = "https://github.com/microsoft/azure-devops-python-api";
31 license = licenses.mit;
32 maintainers = with maintainers; [ jonringer ];
33 };
34}