Merge pull request #172416 from WolfangAukang/github3py-fix

python3Packages.github3_py: update list of dependencies
main
davidak 2 years ago committed by GitHub
commit d4a6c69e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 46
      pkgs/development/python-modules/github3_py/default.nix

@ -1,41 +1,50 @@
{ lib { lib
, pythonOlder
, buildPythonPackage , buildPythonPackage
, pythonOlder
, fetchPypi , fetchPypi
, betamax
, pytest
, betamax-matchers
, unittest2
, mock
, requests , requests
, uritemplate , uritemplate
, python-dateutil , python-dateutil
, jwcrypto , pyjwt
, pyopenssl , pytestCheckHook
, ndg-httpsclient , betamax
, pyasn1 , betamax-matchers
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "github3.py"; pname = "github3.py";
version = "3.2.0"; version = "3.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-Cbcr4Ul9NGsJaM3oNgoNavedwgbQFJpjzT7IbGXDd8w="; sha256 = "sha256-Cbcr4Ul9NGsJaM3oNgoNavedwgbQFJpjzT7IbGXDd8w=";
}; };
checkInputs = [ betamax pytest betamax-matchers ] propagatedBuildInputs = [
++ lib.optional (pythonOlder "3") unittest2 requests
++ lib.optional (pythonOlder "3.3") mock; uritemplate
propagatedBuildInputs = [ requests uritemplate python-dateutil jwcrypto pyopenssl ndg-httpsclient pyasn1 ]; python-dateutil
pyjwt
];
postPatch = '' checkInputs = [
sed -i -e 's/unittest2 ==0.5.1/unittest2>=0.5.1/' setup.py pytestCheckHook
betamax
betamax-matchers
];
# Solves "__main__.py: error: unrecognized arguments: -nauto"
preCheck = ''
rm tox.ini
''; '';
# TODO: only disable the tests that require network disabledTests = [
doCheck = false; # FileNotFoundError: [Errno 2] No such file or directory: 'tests/id_rsa.pub'
"test_delete_key"
];
meta = with lib; { meta = with lib; {
homepage = "https://github3py.readthedocs.org/en/master/"; homepage = "https://github3py.readthedocs.org/en/master/";
@ -43,5 +52,4 @@ buildPythonPackage rec {
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ pSub ]; maintainers = with maintainers; [ pSub ];
}; };
} }

Loading…
Cancel
Save