mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
43 lines
956 B
Nix
43 lines
956 B
Nix
{ pkgs
|
|
, lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy3k
|
|
, adal
|
|
, msrest
|
|
, mock
|
|
, httpretty
|
|
, pytest
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.6.1";
|
|
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 = "09swndz57131b8x57mzibnsr1sv0l80pk62p89q99gsd6mvc389c";
|
|
};
|
|
|
|
propagatedBuildInputs = [ adal msrest ];
|
|
|
|
checkInputs = [ httpretty mock pytest ]
|
|
++ lib.optional 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 ];
|
|
};
|
|
}
|