git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.msrestazure: 0.6.0 -> 0.6.1
commitc438c0e0b71c3b4be174486b0a5f60c67dd09721 authorJonathan Ringer <jonringer117@gmail.com> dateWed 19 Jun 2019, 15:28 (7 years ago) parente8fc86d
1 file changed+23−6
pkgs/development/python-modules/msrestazure/default.nix+23−6
pkgs/development/python-modules/msrestazure/default.nix+23−6
@@ -1,25 +1,42 @@
11{ pkgs
2+, lib
23, buildPythonPackage
3−, fetchPypi
4+, fetchFromGitHub
5+, isPy3k
46, adal
57, msrest
8+, mock
9+, httpretty
10+, pytest
11+, pytest-asyncio
612}:
713
814buildPythonPackage rec {
9− version = "0.6.0";
15+ version = "0.6.1";
1016 pname = "msrestazure";
1117
12− src = fetchPypi {
13− inherit pname version;
14− sha256 = "06s04f6nng4na2663kc12a3skiaqb631nscjfwpsrx4lzkf8bccr";
18+ # Pypi tarball doesnt include tests
19+ # see https://github.com/Azure/msrestazure-for-python/pull/133
20+ src = fetchFromGitHub {
21+ owner = "Azure";
22+ repo = "msrestazure-for-python";
23+ rev = "v${version}";
24+ sha256 = "09swndz57131b8x57mzibnsr1sv0l80pk62p89q99gsd6mvc389c";
1525 };
1626
1727 propagatedBuildInputs = [ adal msrest ];
1828
29+ checkInputs = [ httpretty mock pytest ]
30+ ++ lib.optional isPy3k [ pytest-asyncio ];
31+
32+ checkPhase = ''
33+ pytest tests/
34+ '';
35+
1936 meta = with pkgs.lib; {
2037 description = "The runtime library 'msrestazure' for AutoRest generated Python clients.";
2138 homepage = "https://azure.microsoft.com/en-us/develop/python/";
2239 license = licenses.mit;
23− maintainers = with maintainers; [ bendlas ];
40+ maintainers = with maintainers; [ bendlas jonringer ];
2441 };
2542}