nixpkgs/pkgs/development/python-modules/msrestazure/default.nix

43 lines
957 B
Nix
Raw Normal View History

2018-12-19 23:07:28 +00:00
{ pkgs
, lib
2018-12-19 23:07:28 +00:00
, buildPythonPackage
, fetchFromGitHub
, isPy3k
2018-12-19 23:07:28 +00:00
, adal
, msrest
, mock
, httpretty
, pytest
, pytest-asyncio
2018-12-19 23:07:28 +00:00
}:
buildPythonPackage rec {
version = "0.6.3";
2018-12-19 23:07:28 +00:00
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";
2018-12-19 23:07:28 +00:00
};
propagatedBuildInputs = [ adal msrest ];
checkInputs = [ httpretty mock pytest ]
2019-11-10 00:12:23 +00:00
++ lib.optionals isPy3k [ pytest-asyncio ];
checkPhase = ''
pytest tests/
'';
2018-12-19 23:07:28 +00:00
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 ];
2018-12-19 23:07:28 +00:00
};
}