Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 72 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273{ lib, buildPythonPackage, pythonAtLeast, pythonOlder, fetchFromGitHub, setuptools, aiohttp, attrs, defusedxml, pytest-aiohttp, pytest-mock, pytestCheckHook,}:
buildPythonPackage rec { pname = "arcam-fmj"; version = "1.8.1"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "elupus"; repo = "arcam_fmj"; tag = version; hash = "sha256-sNV2k3cbQe60Jpq1J2T6TQAz+NEyLXvS97//vXJ17TM="; };
build-system = [ setuptools ];
dependencies = [ aiohttp attrs defusedxml ];
nativeCheckInputs = [ pytest-aiohttp pytest-mock pytestCheckHook ];
disabledTests = lib.optionals (pythonAtLeast "3.12") [ # stuck on EpollSelector.poll() "test_power" "test_multiple" "test_invalid_command" "test_state" "test_silent_server_request" "test_silent_server_disconnect" "test_heartbeat" "test_cancellation" "test_unsupported_zone" ];
pythonImportsCheck = [ "arcam.fmj" "arcam.fmj.client" "arcam.fmj.state" "arcam.fmj.utils" ];
meta = with lib; { description = "Python library for speaking to Arcam receivers"; mainProgram = "arcam-fmj"; homepage = "https://github.com/elupus/arcam_fmj"; changelog = "https://github.com/elupus/arcam_fmj/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; };}