diff --git a/pkgs/development/python-modules/arcam-fmj/default.nix b/pkgs/development/python-modules/arcam-fmj/default.nix new file mode 100644 index 000000000000..4c3ff7d85a57 --- /dev/null +++ b/pkgs/development/python-modules/arcam-fmj/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, aiohttp +, attrs +, defusedxml +, pytest-aiohttp +, pytest-mock +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "arcam-fmj"; + version = "0.7.0"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "elupus"; + repo = "arcam_fmj"; + rev = version; + sha256 = "0y4wvvbcsizjd9qz6iw4gjhq5qf0qcqs27hpx1cd90vhy6rclxm0"; + }; + + propagatedBuildInputs = [ + aiohttp + attrs + defusedxml + ]; + + checkInputs = [ + pytest-aiohttp + pytest-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ + "arcam.fmj" + "arcam.fmj.client" + "arcam.fmj.state" + "arcam.fmj.utils" + ]; + + meta = with lib; { + description = "Python library for speaking to Arcam receivers"; + homepage = "https://github.com/elupus/arcam_fmj"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 08586736d4f3..5fcad2a1f4e2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -499,6 +499,8 @@ in { arabic-reshaper = callPackage ../development/python-modules/arabic-reshaper { }; + arcam-fmj = callPackage ../development/python-modules/arcam-fmj { }; + archinfo = callPackage ../development/python-modules/archinfo { }; area = callPackage ../development/python-modules/area { };