mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
python311Packages.github3-py: 3.2.0 -> 4.0.1
This commit is contained in:
parent
3f90c530b2
commit
b73a5beb84
@ -9,25 +9,31 @@
|
||||
, pytestCheckHook
|
||||
, betamax
|
||||
, betamax-matchers
|
||||
, hatchling
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "github3.py";
|
||||
version = "3.2.0";
|
||||
format = "setuptools";
|
||||
version = "4.0.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-Cbcr4Ul9NGsJaM3oNgoNavedwgbQFJpjzT7IbGXDd8w=";
|
||||
hash = "sha256-MNVxB2dT78OJ7cf5qu8zik/LJLVNiWjV85sTQvRd3TY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyjwt
|
||||
python-dateutil
|
||||
requests
|
||||
uritemplate
|
||||
python-dateutil
|
||||
pyjwt
|
||||
]
|
||||
++ pyjwt.optional-dependencies.crypto;
|
||||
|
||||
@ -37,6 +43,14 @@ buildPythonPackage rec {
|
||||
betamax-matchers
|
||||
];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# disable tests with "AttributeError: 'MockHTTPResponse' object has no attribute 'close'", due to betamax
|
||||
url = "https://github.com/sigmavirus24/github3.py/commit/9d6124c09b0997b5e83579549bcf22b3e901d7e5.patch";
|
||||
hash = "sha256-8Z4vN7iKl/sOcEJptsH5jsqijZgvL6jS7kymZ8+m6bY=";
|
||||
})
|
||||
];
|
||||
|
||||
# Solves "__main__.py: error: unrecognized arguments: -nauto"
|
||||
preCheck = ''
|
||||
rm tox.ini
|
||||
|
Loading…
Reference in New Issue
Block a user