python312Packages.pyloadapi: init at 1.2.0

Simple wrapper for pyLoad's API

https://github.com/tr4nt0r/pyloadapi
This commit is contained in:
Fabian Affolter
2024-06-23 23:31:22 +02:00
parent 69c67cf44e
commit f0d126e475
2 changed files with 60 additions and 0 deletions
@@ -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 ];
};
}
+2
View File
@@ -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 { };