Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
python.pkgs.msrest: 0.6.2 -> 0.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schütz committed Mar 19, 2019
1 parent fc172b3 commit fcf74c6
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions pkgs/development/python-modules/msrest/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,45 @@
{ pkgs
{ lib
, buildPythonPackage
, fetchPypi
, python
, certifi
, fetchFromGitHub
, requests
, requests_oauthlib
, typing
, isodate
, certifi
, aiohttp
, aiodns
, pytest
, httpretty
}:

buildPythonPackage rec {
version = "0.6.2";
version = "0.6.4";
pname = "msrest";

src = fetchPypi {
inherit pname version;
sha256 = "0icklfjaagk0j9iwq897avmqhwwmgs7c5yy5jw3ppdqz6h0sm38v";
#src = fetchPypi {
# inherit pname version;
# sha256 = "5dadd54bec98d52cd9f43fb095015c346135b8cafaa35f24c7309cc25d3ad266";
#};

src = fetchFromGitHub {
owner = "Azure";
repo = "msrest-for-python";
rev = "v${version}";
sha256 = "0ilrc06qq0dw4qqzq1dq2vs6nymc39h19w52dwcyawwfalalnjzi";
};

propagatedBuildInputs = [ certifi requests_oauthlib typing isodate ];
propagatedBuildInputs = [
requests requests_oauthlib isodate certifi
# optional
aiohttp aiodns
];

checkInputs = [ pytest httpretty ];

checkPhase = ''
pytest tests/
'';

meta = with pkgs.lib; {
meta = with lib; {
description = "The runtime library 'msrest' for AutoRest generated Python clients.";
homepage = "https://azure.microsoft.com/en-us/develop/python/";
license = licenses.mit;
Expand Down

0 comments on commit fcf74c6

Please sign in to comment.