git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.msrest: 0.6.2 -> 0.6.4
commitfcf74c6dc05d5a41bc04e1ce56072321d715ccfb authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de> dateTue 19 Mar 2019, 15:58 (8 years ago) parentfc172b3
1 file changed+31−11
pkgs/development/python-modules/msrest/default.nix+31−11
pkgs/development/python-modules/msrest/default.nix+31−11
@@ -1,25 +1,45 @@
1−{ pkgs
1+{ lib
22, buildPythonPackage
3−, fetchPypi
4−, python
5−, certifi
3+, fetchFromGitHub
4+, requests
65, requests_oauthlib
7−, typing
86, isodate
7+, certifi
8+, aiohttp
9+, aiodns
10+, pytest
11+, httpretty
912}:
1013
1114buildPythonPackage rec {
12− version = "0.6.2";
15+ version = "0.6.4";
1316 pname = "msrest";
1417
15− src = fetchPypi {
16− inherit pname version;
17− sha256 = "0icklfjaagk0j9iwq897avmqhwwmgs7c5yy5jw3ppdqz6h0sm38v";
18+ #src = fetchPypi {
19+ # inherit pname version;
20+ # sha256 = "5dadd54bec98d52cd9f43fb095015c346135b8cafaa35f24c7309cc25d3ad266";
21+ #};
22+
23+ src = fetchFromGitHub {
24+ owner = "Azure";
25+ repo = "msrest-for-python";
26+ rev = "v${version}";
27+ sha256 = "0ilrc06qq0dw4qqzq1dq2vs6nymc39h19w52dwcyawwfalalnjzi";
1828 };
1929
20− propagatedBuildInputs = [ certifi requests_oauthlib typing isodate ];
30+ propagatedBuildInputs = [
31+ requests requests_oauthlib isodate certifi
32+ # optional
33+ aiohttp aiodns
34+ ];
35+
36+ checkInputs = [ pytest httpretty ];
37+
38+ checkPhase = ''
39+ pytest tests/
40+ '';
2141
22− meta = with pkgs.lib; {
42+ meta = with lib; {
2343 description = "The runtime library 'msrest' for AutoRest generated Python clients.";
2444 homepage = "https://azure.microsoft.com/en-us/develop/python/";
2545 license = licenses.mit;