From 69c67cf44e7d9cd183e382790d0a38f395915c5a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Jun 2024 23:26:25 +0200 Subject: python312Packages.hatch-regex-commit: init at 0.0.3 Hatch plugin to create a commit and tag when bumping version https://github.com/frankie567/hatch-regex-commit --- pkgs/top-level/python-packages.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/top-level') diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 076e5131f1b86..61f9a98df02a8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5365,6 +5365,8 @@ self: super: with self; { hatch-nodejs-version = callPackage ../development/python-modules/hatch-nodejs-version { }; + hatch-regex-commit = callPackage ../development/python-modules/hatch-regex-commit { }; + hatch-requirements-txt = callPackage ../development/python-modules/hatch-requirements-txt { }; haversine = callPackage ../development/python-modules/haversine { }; -- cgit 1.4.1 From f0d126e4753eae8a8a6e194f78c7f429200db21e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Jun 2024 23:31:22 +0200 Subject: python312Packages.pyloadapi: init at 1.2.0 Simple wrapper for pyLoad's API https://github.com/tr4nt0r/pyloadapi --- .../python-modules/pyloadapi/default.nix | 58 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 60 insertions(+) create mode 100644 pkgs/development/python-modules/pyloadapi/default.nix (limited to 'pkgs/top-level') diff --git a/pkgs/development/python-modules/pyloadapi/default.nix b/pkgs/development/python-modules/pyloadapi/default.nix new file mode 100644 index 0000000000000..aec92117415c9 --- /dev/null +++ b/pkgs/development/python-modules/pyloadapi/default.nix @@ -0,0 +1,58 @@ +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + hatch-regex-commit, + hatchling, + pytest-asyncio, + pytestCheckHook, + python-dotenv, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "pyloadapi"; + version = "1.2.0"; + pyproject = true; + + disabled = pythonOlder "3.12"; + + src = fetchFromGitHub { + owner = "tr4nt0r"; + repo = "pyloadapi"; + rev = "refs/tags/v${version}"; + hash = "sha256-uOgqc1RqmEk0Lqz/ixlChKTZva7+0v4V8KutLSgPKEE="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "--cov=src/pyloadapi/ --cov-report=term-missing" "" + ''; + + build-system = [ + hatch-regex-commit + hatchling + ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytestCheckHook + python-dotenv + ]; + + pythonImportsCheck = [ "pyloadapi" ]; + + meta = with lib; { + description = "Simple wrapper for pyLoad's API"; + homepage = "https://github.com/tr4nt0r/pyloadapi"; + changelog = "https://github.com/tr4nt0r/pyloadapi/blob/${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 61f9a98df02a8..d1580a92a22f4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10087,6 +10087,8 @@ self: super: with self; { pylddwrap = callPackage ../development/python-modules/pylddwrap { }; + pyloadapi = callPackage ../development/python-modules/pyloadapi { }; + pyngo = callPackage ../development/python-modules/pyngo { }; pyngrok = callPackage ../development/python-modules/pyngrok { }; -- cgit 1.4.1