From 9737285976e8b2a3c5bd6f6e51174cb34ca61635 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 3 Nov 2021 21:42:13 +0100 Subject: [PATCH] python3Packages.ha-av: init at 8.0.4rc1 --- .../python-modules/ha-av/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/ha-av/default.nix diff --git a/pkgs/development/python-modules/ha-av/default.nix b/pkgs/development/python-modules/ha-av/default.nix new file mode 100644 index 000000000000..2e24dde84b41 --- /dev/null +++ b/pkgs/development/python-modules/ha-av/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, pkg-config +, ffmpeg +, numpy +, pytestCheckHook +, python +}: + +buildPythonPackage rec { + pname = "ha-av"; + version = "8.0.4rc1"; + format = "setuptools"; + + disabled = pythonOlder "3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-txdi2/X6upqrACeHhHpEh4tGqgPpW/dyWda8y++7c3M="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + ffmpeg + ]; + + pythonImportsCheck = [ + "av" + "av._core" + ]; + + # tests fail to import av._core + doCheck = false; + + meta = with lib; { + homepage = "https://pypi.org/project/ha-av/"; + description = "Pythonic bindings for FFmpeg's libraries"; + license = licenses.bsd3; + maintainers = with maintainers; [ hexa ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3d77ef2598c6..3b834aa5b540 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3428,6 +3428,8 @@ in { hdate = callPackage ../development/python-modules/hdate { }; + ha-av = callPackage ../development/python-modules/ha-av { }; + ha-ffmpeg = callPackage ../development/python-modules/ha-ffmpeg { }; ha-philipsjs = callPackage ../development/python-modules/ha-philipsjs{ };