depot/third_party/nixpkgs/pkgs/development/python-modules/asana/default.nix
Default email eaf6957cd3 Project import generated by Copybara.
GitOrigin-RevId: 4bb072f0a8b267613c127684e099a70e1f6ff106
2023-03-27 12:17:25 -07:00

46 lines
893 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, requests-oauthlib
, responses
}:
buildPythonPackage rec {
pname = "asana";
version = "3.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asana";
repo = "python-asana";
rev = "refs/tags/v${version}";
hash = "sha256-qxoGi7UByHEuDKsELEjwzf01/JNEiUgUs88536TGFKo=";
};
propagatedBuildInputs = [
requests
requests-oauthlib
];
nativeCheckInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [
"asana"
];
meta = with lib; {
description = "Python client library for Asana";
homepage = "https://github.com/asana/python-asana";
changelog = "https://github.com/Asana/python-asana/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}