depot/third_party/nixpkgs/pkgs/development/python-modules/atlassian-python-api/default.nix

51 lines
999 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, deprecated
, oauthlib
, requests
, requests-oauthlib
, six
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "atlassian-python-api";
version = "3.41.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "atlassian-api";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-DSIJOp5c/bqOOIZylhUGyIwIco5isA3ytCRR51WfTyI=";
};
propagatedBuildInputs = [
deprecated
oauthlib
requests
requests-oauthlib
six
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"atlassian"
];
meta = with lib; {
description = "Python Atlassian REST API Wrapper";
homepage = "https://github.com/atlassian-api/atlassian-python-api";
changelog = "https://github.com/atlassian-api/atlassian-python-api/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ arnoldfarkas ];
};
}