Merge pull request #282843 from fabaff/githubkit-bump

python311Packages.githubkit: 0.10.7 -> 0.11.0, python311Packages.hishel: init at 0.0.21, python311Packages.anysqlite: init at 0.0.5
This commit is contained in:
Fabian Affolter 2024-01-22 20:40:49 +01:00 committed by GitHub
commit c16078dc39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 188 additions and 7 deletions

View File

@ -0,0 +1,51 @@
{ lib
, anyio
, buildPythonPackage
, fetchFromGitHub
, hatch-fancy-pypi-readme
, hatchling
, pytestCheckHook
, pythonOlder
, trio
}:
buildPythonPackage rec {
pname = "anysqlite";
version = "0.0.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "karpetrosyan";
repo = "anysqlite";
rev = "refs/tags/v${version}";
hash = "sha256-6kNN6kjkMHVNneMq/8zQxqMIXUxH/+eWLX8XhoHqFRU=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatchling
];
propagatedBuildInputs = [
anyio
];
nativeCheckInputs = [
pytestCheckHook
trio
];
pythonImportsCheck = [
"anysqlite"
];
meta = with lib; {
description = "Sqlite3 for asyncio and trio";
homepage = "https://github.com/karpetrosyan/anysqlite";
changelog = "https://github.com/karpetrosyan/anysqlite/blob/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,37 +1,89 @@
{ lib
, anyio
, buildPythonPackage
, fetchPypi
, poetry-core
, fetchFromGitHub
, hishel
, httpx
, poetry-core
, pydantic
, pyjwt
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "githubkit";
version = "0.10.7";
version = "0.11.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-sKikL+761mBP7j+qugHKDQ0hVXT51FV8FYbB3ZJtweA=";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "yanyongyu";
repo = "githubkit";
rev = "refs/tags/v${version}";
hash = "sha256-o7u/C9Ylw903Hat4xZdb0YYVtXKSu2WljD9uiLQeFIU=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=githubkit --cov-append --cov-report=term-missing" ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
hishel
httpx
pydantic
typing-extensions
];
pythonImportsCheck = [ "githubkit" ];
passthru.optional-dependencies = {
all = [
anyio
pyjwt
];
jwt = [
pyjwt
];
auth-app = [
pyjwt
];
auth-oauth-device = [
anyio
];
auth = [
anyio
pyjwt
];
};
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"githubkit"
];
disabledTests = [
# Tests require network access
"test_graphql"
"test_async_graphql"
"test_call"
"test_async_call"
"test_versioned_call"
"test_versioned_async_call"
];
meta = {
description = "GitHub SDK for Python";
homepage = "https://github.com/yanyongyu/githubkit";
changelog = "https://github.com/yanyongyu/githubkit/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kranzes ];
};

View File

@ -0,0 +1,74 @@
{ lib
, anysqlite
, buildPythonPackage
, fetchFromGitHub
, hatch-fancy-pypi-readme
, hatchling
, httpx
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, pyyaml
, redis
, trio
}:
buildPythonPackage rec {
pname = "hishel";
version = "0.0.21";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "karpetrosyan";
repo = "hishel";
rev = "refs/tags/${version}";
hash = "sha256-okNNYEq97qb2OoP3N+MvG7o3YADfd6LxP8EaNuWDGOM=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatchling
];
propagatedBuildInputs = [
httpx
];
passthru.optional-dependencies = {
redis = [
redis
];
sqlite = [
anysqlite
];
yaml = [
pyyaml
];
};
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
trio
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"hishel"
];
disabledTests = [
# Tests require a running Redis instance
"test_redis"
];
meta = with lib; {
description = "HTTP Cache implementation for HTTPX and HTTP Core";
homepage = "https://github.com/karpetrosyan/hishel";
changelog = "https://github.com/karpetrosyan/hishel/blob/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -607,6 +607,8 @@ self: super: with self; {
anyqt = callPackage ../development/python-modules/anyqt { };
anysqlite = callPackage ../development/python-modules/anysqlite { };
anytree = callPackage ../development/python-modules/anytree {
inherit (pkgs) graphviz;
};
@ -5169,6 +5171,8 @@ self: super: with self; {
hiro = callPackage ../development/python-modules/hiro { };
hishel = callPackage ../development/python-modules/hishel { };
hist = callPackage ../development/python-modules/hist { };
histoprint = callPackage ../development/python-modules/histoprint { };