Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 107 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108{ lib, buildPythonPackage, aiohttp, bitarray, chacha20poly1305-reuseable, cryptography, deepdiff, fetchFromGitHub, mediafile, miniaudio, netifaces, protobuf, pytest-aiohttp, pytest-asyncio, pytest-timeout, pytestCheckHook, pythonRelaxDepsHook, pythonOlder, requests, srptools, zeroconf}:
buildPythonPackage rec { pname = "pyatv"; version = "0.12.1"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "postlund"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-HugvgJAD5R6n8XK802QR7FAaZscyzFRayg48kf3crFQ="; };
postPatch = '' substituteInPlace setup.py \ --replace "pytest-runner" "" '';
pythonRelaxDeps = [ "aiohttp" "async_timeout" "bitarray" "chacha20poly1305-reuseable" "cryptography" "ifaddr" "mediafile" "miniaudio" "protobuf" "requests" "srptools" "zeroconf" ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
propagatedBuildInputs = [ aiohttp bitarray chacha20poly1305-reuseable cryptography mediafile miniaudio netifaces protobuf requests srptools zeroconf ];
nativeCheckInputs = [ deepdiff pytest-aiohttp pytest-asyncio pytest-timeout pytestCheckHook ];
pytestFlagsArray = [ "--asyncio-mode=legacy" ];
disabledTestPaths = [ # Test doesn't work in the sandbox "tests/protocols/companion/test_companion_auth.py" "tests/protocols/mrp/test_mrp_auth.py" ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "pyatv" ];
meta = with lib; { description = "Python client library for the Apple TV"; homepage = "https://github.com/postlund/pyatv"; changelog = "https://github.com/postlund/pyatv/blob/v${version}/CHANGES.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}