pythonPackages.asana: init at 0.6.2

This commit is contained in:
betaboon 2017-08-31 21:01:15 +02:00 committed by Frederik Rietdijk
parent 712942dea3
commit f89fd55833
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib, buildPythonPackage, fetchPypi,
pytest, requests, requests_oauthlib, six
}:
buildPythonPackage rec {
pname = "asana";
version = "0.6.2";
name = "${pname}-${version}";
meta = {
description = "Python client library for Asana";
homepage = https://github.com/asana/python-asana;
license = lib.licenses.mit;
};
src = fetchPypi {
inherit pname version;
sha256 = "0skai72392n3i1c4bl3hn2kh5lj990qsbasdwkbjdcy6vq57jggf";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [ requests requests_oauthlib six ];
patchPhase = ''
echo > requirements.txt
sed -i "s/requests~=2.9.1/requests >=2.9.1/" setup.py
sed -i "s/requests_oauthlib~=0.6.1/requests_oauthlib >=0.6.1/" setup.py
'';
# ERROR: file not found: tests
doCheck = false;
checkPhase = ''
py.test tests
'';
}

View File

@ -121,6 +121,8 @@ in {
ansicolor = callPackage ../development/python-modules/ansicolor { };
asana = callPackage ../development/python-modules/asana { };
asn1crypto = callPackage ../development/python-modules/asn1crypto { };
astropy = callPackage ../development/python-modules/astropy { };