nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python313Packages.directv: fix build (#406827)

authored by

dotlambda and committed by
GitHub
12cf3777 8309e9e8

+19 -7
+19 -7
pkgs/development/python-modules/directv/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 + setuptools, 5 6 aiohttp, 6 7 yarl, 7 8 aresponses, ··· 13 12 buildPythonPackage rec { 14 13 pname = "directv"; 15 14 version = "0.4.0"; 16 - format = "setuptools"; 15 + pyproject = true; 17 16 18 17 src = fetchFromGitHub { 19 18 owner = "ctalkington"; 20 19 repo = "python-directv"; 21 - rev = version; 22 - sha256 = "19jckf6qvl8fwi8yff1qy8c44xdz3zpi1ip1md6zl2c503qc91mk"; 20 + tag = version; 21 + hash = "sha256-s4bE8ACFCfpNq+HGEO8fv3VCGPI4OOdR5A7RjY2bTKY="; 23 22 }; 24 23 25 - propagatedBuildInputs = [ 24 + postPatch = '' 25 + # TypeError: 'Timeout' object does not support the context manager protocol 26 + substituteInPlace directv/directv.py \ 27 + --replace-fail "with async_timeout.timeout" "async with async_timeout.timeout" 28 + ''; 29 + 30 + build-system = [ setuptools ]; 31 + 32 + dependencies = [ 26 33 aiohttp 27 34 yarl 28 35 ]; ··· 41 32 pytestCheckHook 42 33 ]; 43 34 35 + __darwinAllowLocalNetworking = true; 36 + 44 37 disabledTests = [ 45 38 # ValueError: Host '#' cannot contain '#' (at position 0) 46 39 "test_client_error" ··· 50 39 51 40 pythonImportsCheck = [ "directv" ]; 52 41 53 - meta = with lib; { 42 + meta = { 43 + changelog = "https://github.com/ctalkington/python-directv/releases/tag/${src.tag}"; 54 44 description = "Asynchronous Python client for DirecTV (SHEF)"; 55 45 homepage = "https://github.com/ctalkington/python-directv"; 56 - license = licenses.mit; 57 - maintainers = with maintainers; [ dotlambda ]; 46 + license = lib.licenses.mit; 47 + maintainers = with lib.maintainers; [ dotlambda ]; 58 48 }; 59 49 }