1{ lib 2, stdenv 3, buildPythonPackage 4, fetchFromGitHub 5 6# tests 7, ffmpeg-full 8, python 9}: 10 11buildPythonPackage rec { 12 pname = "pydub"; 13 version = "0.25.1"; 14 format = "setuptools"; 15 16 # pypi version doesn't include required data files for tests 17 src = fetchFromGitHub { 18 owner = "jiaaro"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "0xskllq66wqndjfmvp58k26cv3w480sqsil6ifwp4gghir7hqc8m"; 22 }; 23 24 pythonImportsCheck = [ 25 "pydub" 26 "pydub.audio_segment" 27 "pydub.playback" 28 ]; 29 30 nativeCheckInputs = [ 31 ffmpeg-full 32 ]; 33 34 checkPhase = '' 35 ${python.interpreter} test/test.py 36 ''; 37 38 meta = with lib; { 39 description = "Manipulate audio with a simple and easy high level interface"; 40 homepage = "http://pydub.com"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ hexa ]; 43 }; 44}