biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pyloadapi / default.nix
blobcb2e77d5d22384f0607db8743ebea151057383bf
2   lib,
3   aiohttp,
4   aioresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   hatch-regex-commit,
8   hatchling,
9   pytest-asyncio,
10   pytestCheckHook,
11   python-dotenv,
12   pythonOlder,
15 buildPythonPackage rec {
16   pname = "pyloadapi";
17   version = "1.4.0";
18   pyproject = true;
20   disabled = pythonOlder "3.12";
22   src = fetchFromGitHub {
23     owner = "tr4nt0r";
24     repo = "pyloadapi";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-USSTXHHhtUc8QF9U3t3rARXn5Iqo6KOGBa3VAfRMbiQ=";
27   };
29   postPatch = ''
30     substituteInPlace pyproject.toml \
31       --replace-fail "--cov=src/pyloadapi/ --cov-report=term-missing" ""
32   '';
34   build-system = [
35     hatch-regex-commit
36     hatchling
37   ];
39   dependencies = [ aiohttp ];
41   nativeCheckInputs = [
42     aioresponses
43     pytest-asyncio
44     pytestCheckHook
45     python-dotenv
46   ];
48   pythonImportsCheck = [ "pyloadapi" ];
50   disabledTestPaths = [
51     # Tests require network access
52     "tests/test_cli.py"
53   ];
55   meta = with lib; {
56     description = "Simple wrapper for pyLoad's API";
57     homepage = "https://github.com/tr4nt0r/pyloadapi";
58     changelog = "https://github.com/tr4nt0r/pyloadapi/blob/${version}/CHANGELOG.md";
59     license = licenses.mit;
60     maintainers = with maintainers; [ fab ];
61   };