2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, uritemplate
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2022-05-18 14:49:53 +00:00
|
|
|
, pyjwt
|
|
|
|
, pytestCheckHook
|
|
|
|
, betamax
|
|
|
|
, betamax-matchers
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "github3.py";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "3.2.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-Cbcr4Ul9NGsJaM3oNgoNavedwgbQFJpjzT7IbGXDd8w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
uritemplate
|
|
|
|
python-dateutil
|
|
|
|
pyjwt
|
2022-10-21 18:38:19 +00:00
|
|
|
]
|
|
|
|
++ pyjwt.optional-dependencies.crypto;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
pytestCheckHook
|
|
|
|
betamax
|
|
|
|
betamax-matchers
|
|
|
|
];
|
|
|
|
|
|
|
|
# Solves "__main__.py: error: unrecognized arguments: -nauto"
|
|
|
|
preCheck = ''
|
|
|
|
rm tox.ini
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
disabledTests = [
|
|
|
|
# FileNotFoundError: [Errno 2] No such file or directory: 'tests/id_rsa.pub'
|
|
|
|
"test_delete_key"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github3py.readthedocs.org/en/master/";
|
|
|
|
description = "A wrapper for the GitHub API written in python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|