diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-06-15 17:51:26 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-06-16 10:41:29 +0200 |
commit | 1b48bdb7031d848408cfffe6759eec0a54d1c7e6 (patch) | |
tree | 492d7aa925c90e29c688d6644d3ea189da4724bc /pkgs/development/python-modules/arcam-fmj | |
parent | ff3b3e696ad0f4ea2cc8a8f4e030794742a36a50 (diff) |
python3Packages.arcam-fmj: init at 0.7.0
Diffstat (limited to 'pkgs/development/python-modules/arcam-fmj')
-rw-r--r-- | pkgs/development/python-modules/arcam-fmj/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
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 0000000000000..4c3ff7d85a575 --- /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 ]; + }; +} |