python38Packages.atlassian-python-api: switch to fetching from GitHub

The pypi source code doesn't contain the response stubs necessary for
the tests to pass
This commit is contained in:
Jonathan Wilkins 2021-05-07 20:35:04 +01:00 committed by Jonathan Ringer
parent 958855d30c
commit 6549f6357b

View file

@ -1,30 +1,28 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, isPy3k
, certifi
, chardet
, deprecated , deprecated
, idna
, oauthlib , oauthlib
, requests , requests
, requests_oauthlib , requests_oauthlib
, six , six
, urllib3 , pytestCheckHook
, pytestrunner
, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "atlassian-python-api"; pname = "atlassian-python-api";
version = "3.8.0"; version = "3.8.0";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "atlassian-api";
sha256 = "7ef384a91a790c807336e2bd6b7554284691aadd6d7413d199baf752dd84c53e"; repo = pname;
rev = version;
sha256 = "sha256-J0/CtfBtOdWReKQS/VvOL/3r+j4zJfnv/ICIXepKUvc=";
}; };
checkInputs = [ pytestrunner pytest ]; checkInputs = [
pytestCheckHook
];
propagatedBuildInputs = [ deprecated oauthlib requests requests_oauthlib six ]; propagatedBuildInputs = [ deprecated oauthlib requests requests_oauthlib six ];