mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-07 19:15:36 +03:00
python3Packages.github3_py: update list of dependencies
This commit is contained in:
parent
288c3c6fbc
commit
fdb0c163ec
1 changed files with 27 additions and 19 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue