pythonPackages.asana: init at 0.6.2
This commit is contained in:
parent
712942dea3
commit
f89fd55833
37
pkgs/development/python-modules/asana/default.nix
Normal file
37
pkgs/development/python-modules/asana/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
@ -121,6 +121,8 @@ in {
|
|||||||
|
|
||||||
ansicolor = callPackage ../development/python-modules/ansicolor { };
|
ansicolor = callPackage ../development/python-modules/ansicolor { };
|
||||||
|
|
||||||
|
asana = callPackage ../development/python-modules/asana { };
|
||||||
|
|
||||||
asn1crypto = callPackage ../development/python-modules/asn1crypto { };
|
asn1crypto = callPackage ../development/python-modules/asn1crypto { };
|
||||||
|
|
||||||
astropy = callPackage ../development/python-modules/astropy { };
|
astropy = callPackage ../development/python-modules/astropy { };
|
||||||
|
Loading…
Reference in New Issue
Block a user