Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 35 lines 882 B view raw
1{ lib, buildPythonPackage, pytest, requests, requests_oauthlib, six 2, fetchFromGitHub, responses, stdenv 3}: 4 5buildPythonPackage rec { 6 pname = "asana"; 7 version = "0.7.0"; 8 name = "${pname}-${version}"; 9 10 src = fetchFromGitHub { 11 owner = "asana"; 12 repo = "python-asana"; 13 rev = "v${version}"; 14 sha256 = "0786y3wxqxxhsb0kkpx4bfzif3dhvv3dmm6vnq58iyj94862kpxf"; 15 }; 16 17 checkInputs = [ pytest responses ]; 18 propagatedBuildInputs = [ requests requests_oauthlib six ]; 19 20 patchPhase = '' 21 echo > requirements.txt 22 sed -i "s/requests~=2.9.1/requests >=2.9.1/" setup.py 23 sed -i "s/requests_oauthlib~=0.6.1/requests_oauthlib >=0.6.1/" setup.py 24 ''; 25 26 checkPhase = '' 27 py.test tests 28 ''; 29 30 meta = with stdenv.lib; { 31 description = "Python client library for Asana"; 32 homepage = https://github.com/asana/python-asana; 33 license = licenses.mit; 34 }; 35}