From f89fd55833c0a74e4f4791d497e559d91e9be95e Mon Sep 17 00:00:00 2001 From: betaboon Date: Thu, 31 Aug 2017 21:01:15 +0200 Subject: [PATCH] pythonPackages.asana: init at 0.6.2 --- .../python-modules/asana/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/asana/default.nix diff --git a/pkgs/development/python-modules/asana/default.nix b/pkgs/development/python-modules/asana/default.nix new file mode 100644 index 000000000000..346257db098f --- /dev/null +++ b/pkgs/development/python-modules/asana/default.nix @@ -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 + ''; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b3fef4311645..cc0712468adf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };