1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 07:26:54 +00:00
nixpkgs/pkgs/development/python-modules/asana/default.nix
Maximilian Bosch ea36b975ab pythonPackages.asana: 0.7.0 -> 0.7.1 (#44561)
Also fixed the package build from
https://hydra.nixos.org/build/78900949.

`requests_oauthlib` seems to work fine at version 1.0 with `asana`, so
rather than creating our own override for `asana` it's fine to use 1.0
and patch `setup.py`.
2018-08-06 22:24:24 +02:00

34 lines
801 B
Nix

{ buildPythonPackage, pytest, requests, requests_oauthlib, six
, fetchFromGitHub, responses, stdenv
}:
buildPythonPackage rec {
pname = "asana";
version = "0.7.1";
src = fetchFromGitHub {
owner = "asana";
repo = "python-asana";
rev = "v${version}";
sha256 = "0vmpy4j1n54gkkg0l8bhw0xf4yby5kqzxnsv07cjc2w38snj5vy1";
};
checkInputs = [ pytest responses ];
propagatedBuildInputs = [ requests requests_oauthlib six ];
postPatch = ''
substituteInPlace setup.py \
--replace "requests_oauthlib >= 0.8.0, == 0.8.*" "requests_oauthlib>=0.8.0<2.0"
'';
checkPhase = ''
py.test tests
'';
meta = with stdenv.lib; {
description = "Python client library for Asana";
homepage = https://github.com/asana/python-asana;
license = licenses.mit;
};
}