Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.hikari-cresent: init at 0.6.6, python312Packages.sigparse: init at 3.0.0 #316323

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions pkgs/development/python-modules/hikari-crescent/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
hikari,
sigparse,
pytestCheckHook,
python-dotenv,
pytest-asyncio,
croniter,
pynacl
}:

buildPythonPackage rec {
pname = "hikari-crescent";
version = "0.6.6";
pyproject = true;

src = fetchFromGitHub {
owner = "hikari-crescent";
repo = "hikari-crescent";
rev = "refs/tags/v${version}";
hash = "sha256-PZAmz7Wofg6jnF25p/8leJQ9PeZaE3q5q2GUJG7NEB0=";
};

build-system = [ poetry-core ];

dependencies = [
hikari
sigparse
];

postPatch = ''
# pythonRelaxDepsHook did not work
substituteInPlace pyproject.toml \
--replace-fail 'hikari = "==' 'hikari = ">='
'';

pythonImportsCheck = [ "crescent" ];

nativeCheckInputs = [
pytestCheckHook
python-dotenv
pytest-asyncio
croniter
pynacl
];

disabledTests = [ "test_handle_resp" ];

meta = with lib; {
description = "A command handler for Hikari that keeps your project neat and tidy";
license = licenses.mit;
homepage = "https://github.com/hikari-crescent/hikari-crescent";
maintainers = with maintainers; [ sigmanificient ];
mainProgram = "hikari-crescent";
};
}
41 changes: 41 additions & 0 deletions pkgs/development/python-modules/sigparse/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
fetchpatch
}:

buildPythonPackage rec {
pname = "sigparse";
version = "3.0.0";
pyproject = true;

src = fetchFromGitHub {
owner = "Lunarmagpie";
repo = "sigparse";
rev = "refs/tags/v${version}";
hash = "sha256-VzWDqplYgwrJXXd5IUzEIp0YRuofybqmGrNKPaGqQFM=";
};

patches = [
# pyproject.toml version file is set as 1.0.0
(fetchpatch {
url = "https://github.com/Lunarmagpie/sigparse/pull/14/commits/44780382410bc6913bdd8ff7e92948078adb736c.patch";
hash = "sha256-3EOkdBQDBodMBp4ENdvquJlRvAAywQhdWAX4dWFmhL0=";
})
];

build-system = [ poetry-core ];
pythonImportsCheck = [ "sigparse" ];

nativeCheckInputs = [ pytestCheckHook ];

meta = with lib; {
description = "Backports python 3.10 typing features into 3.7, 3.8, and 3.9";
license = licenses.mit;
homepage = "https://github.com/Lunarmagpie/sigparse";
maintainers = with maintainers; [ sigmanificient ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5390,6 +5390,8 @@ self: super: with self; {

hikari = callPackage ../development/python-modules/hikari { };

hikari-crescent = callPackage ../development/python-modules/hikari-crescent { };

hikari-lightbulb = callPackage ../development/python-modules/hikari-lightbulb { };

hikvision = callPackage ../development/python-modules/hikvision { };
Expand Down Expand Up @@ -13905,6 +13907,8 @@ self: super: with self; {

signxml = callPackage ../development/python-modules/signxml { };

sigparse = callPackage ../development/python-modules/sigparse { };

sigrok = callPackage ../development/python-modules/sigrok { };

sigstore = callPackage ../development/python-modules/sigstore { };
Expand Down