nixpkgs/pkgs/development/python-modules/pyloadapi/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

59 lines
1.1 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
hatch-regex-commit,
hatchling,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
python-dotenv,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyloadapi";
version = "1.4.2";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "tr4nt0r";
repo = "pyloadapi";
tag = "v${version}";
hash = "sha256-DkYbQB91KYskfm2yDVmR0/MJiixC2C5miHpTq7RpVBU=";
};
build-system = [
hatch-regex-commit
hatchling
];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-cov-stub
pytestCheckHook
python-dotenv
];
pythonImportsCheck = [ "pyloadapi" ];
disabledTestPaths = [
# Tests require network access
"tests/test_cli.py"
];
meta = {
description = "Simple wrapper for pyLoad's API";
homepage = "https://github.com/tr4nt0r/pyloadapi";
changelog = "https://github.com/tr4nt0r/pyloadapi/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}