1{ buildPythonPackage, pytest, requests, requests_oauthlib, six 2, fetchFromGitHub, responses, stdenv 3}: 4 5buildPythonPackage rec { 6 pname = "asana"; 7 version = "0.7.1"; 8 9 src = fetchFromGitHub { 10 owner = "asana"; 11 repo = "python-asana"; 12 rev = "v${version}"; 13 sha256 = "0vmpy4j1n54gkkg0l8bhw0xf4yby5kqzxnsv07cjc2w38snj5vy1"; 14 }; 15 16 checkInputs = [ pytest responses ]; 17 propagatedBuildInputs = [ requests requests_oauthlib six ]; 18 19 postPatch = '' 20 substituteInPlace setup.py \ 21 --replace "requests_oauthlib >= 0.8.0, == 0.8.*" "requests_oauthlib>=0.8.0<2.0" 22 ''; 23 24 checkPhase = '' 25 py.test tests 26 ''; 27 28 meta = with stdenv.lib; { 29 description = "Python client library for Asana"; 30 homepage = https://github.com/asana/python-asana; 31 license = licenses.mit; 32 }; 33}