1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 16:09:19 +03:00
nixpkgs/pkgs/development/python-modules/pydub/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
824 B
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
# tests
, ffmpeg-full
, python
}:
2017-09-14 02:40:37 -04:00
buildPythonPackage rec {
pname = "pydub";
version = "0.25.1";
format = "setuptools";
# pypi version doesn't include required data files for tests
src = fetchFromGitHub {
owner = "jiaaro";
repo = pname;
rev = "v${version}";
sha256 = "0xskllq66wqndjfmvp58k26cv3w480sqsil6ifwp4gghir7hqc8m";
2017-09-14 02:40:37 -04:00
};
pythonImportsCheck = [
"pydub"
"pydub.audio_segment"
"pydub.playback"
];
checkInputs = [
ffmpeg-full
];
2017-09-14 02:40:37 -04:00
checkPhase = ''
${python.interpreter} test/test.py
'';
meta = with lib; {
description = "Manipulate audio with a simple and easy high level interface";
homepage = "http://pydub.com";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
2017-09-14 02:40:37 -04:00
};
}