python.pkgs.audiotools: move expression

This commit is contained in:
Frederik Rietdijk 2018-07-21 09:53:59 +02:00
parent 865ffc16ce
commit a5e1da3df1
2 changed files with 29 additions and 21 deletions

View File

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchurl
, stdenv
, darwin
}:
buildPythonPackage rec {
pname = "audiotools";
version = "3.1.1";
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
AudioToolbox
AudioUnit
CoreServices
]);
src = fetchurl {
url = "https://github.com/tuffy/python-audio-tools/archive/v${version}.tar.gz";
sha256 = "0ymlxvqkqhzk4q088qwir3dq0zgwqlrrdfnq7f0iq97g05qshm2c";
};
meta = {
description = "Utilities and Python modules for handling audio";
homepage = "http://audiotools.sourceforge.net/";
license = lib.licenses.gpl2Plus;
};
}

View File

@ -634,27 +634,7 @@ in {
audioread = callPackage ../development/python-modules/audioread { };
audiotools = buildPythonPackage rec {
name = "audiotools-${version}";
version = "3.1.1";
buildInputs = optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
AudioToolbox
AudioUnit
CoreServices
]);
src = pkgs.fetchurl {
url = "https://github.com/tuffy/python-audio-tools/archive/v${version}.tar.gz";
sha256 = "0ymlxvqkqhzk4q088qwir3dq0zgwqlrrdfnq7f0iq97g05qshm2c";
};
meta = {
description = "Utilities and Python modules for handling audio";
homepage = "http://audiotools.sourceforge.net/";
license = licenses.gpl2Plus;
};
};
audiotools = callPackage ../development/python-modules/audiotools { };
autopep8 = callPackage ../development/python-modules/autopep8 { };