depot/third_party/nixpkgs/pkgs/development/python-modules/msrestazure/default.nix
Default email 9a250f78df Project import generated by Copybara.
GitOrigin-RevId: 8536aeb4154f5458994080bc4cf542695c144739
2020-05-03 19:38:23 +02:00

42 lines
957 B
Nix

{ pkgs
, lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, adal
, msrest
, mock
, httpretty
, pytest
, pytest-asyncio
}:
buildPythonPackage rec {
version = "0.6.3";
pname = "msrestazure";
# Pypi tarball doesnt include tests
# see https://github.com/Azure/msrestazure-for-python/pull/133
src = fetchFromGitHub {
owner = "Azure";
repo = "msrestazure-for-python";
rev = "v${version}";
sha256 = "0pd3qw96c9fz4qgimnc0qf0pz7m9rr1wzhxj8m792swaf3pb18z8";
};
propagatedBuildInputs = [ adal msrest ];
checkInputs = [ httpretty mock pytest ]
++ lib.optionals isPy3k [ pytest-asyncio ];
checkPhase = ''
pytest tests/
'';
meta = with pkgs.lib; {
description = "The runtime library 'msrestazure' for AutoRest generated Python clients.";
homepage = "https://azure.microsoft.com/en-us/develop/python/";
license = licenses.mit;
maintainers = with maintainers; [ bendlas jonringer ];
};
}