python3Packages.asana: 0.10.3 -> 0.10.9
This commit is contained in:
parent
26b86fa1f8
commit
ecd0dd8d1b
@ -1,37 +1,47 @@
|
|||||||
{ buildPythonPackage, pythonAtLeast, pytest, requests, requests_oauthlib, six
|
{ lib
|
||||||
, fetchFromGitHub, responses, lib
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, requests-oauthlib
|
||||||
|
, responses
|
||||||
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "asana";
|
pname = "asana";
|
||||||
version = "0.10.3";
|
version = "0.10.9";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
# upstream reportedly doesn't support 3.7 yet, blocked on
|
disabled = pythonOlder "3.7";
|
||||||
# https://bugs.python.org/issue34226
|
|
||||||
disabled = pythonAtLeast "3.7";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "asana";
|
owner = "asana";
|
||||||
repo = "python-asana";
|
repo = "python-asana";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "11nsfygcfpc2qb2gy4npi9w00cqfh88g7k3rsfq7xambz1zjdz1n";
|
sha256 = "sha256-9gOkCMY15ChdhiFdzS0TjvWpVTKKEGt7XIcK6EhkSK8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest responses ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ requests requests_oauthlib six ];
|
requests
|
||||||
|
requests-oauthlib
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
checkInputs = [
|
||||||
substituteInPlace setup.py \
|
pytestCheckHook
|
||||||
--replace "requests_oauthlib >= 0.8.0, == 0.8.*" "requests_oauthlib>=0.8.0<2.0"
|
responses
|
||||||
'';
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [
|
||||||
py.test tests
|
"asana"
|
||||||
'';
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python client library for Asana";
|
description = "Python client library for Asana";
|
||||||
homepage = "https://github.com/asana/python-asana";
|
homepage = "https://github.com/asana/python-asana";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user