python.pkgs.audioread: move expression

This commit is contained in:
Frederik Rietdijk 2017-08-12 09:04:44 +02:00
parent abdb58e407
commit a25e324e06
2 changed files with 25 additions and 18 deletions

View File

@ -0,0 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "audioread";
name = "${pname}-${version}";
version = "2.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "ffb601de7a9e40850d4ec3256a3a6bbe8fa40466dafb5c65f41b08e4bb963f1e";
};
# No tests, need to disable or py3k breaks
doCheck = false;
meta = {
description = "Cross-platform audio decoding";
homepage = "https://github.com/sampsyo/audioread";
license = lib.licenses.mit;
};
}

View File

@ -709,24 +709,7 @@ in {
};
});
audioread = buildPythonPackage rec {
name = "audioread-${version}";
version = "2.1.1";
src = pkgs.fetchurl {
url = "mirror://pypi/a/audioread/${name}.tar.gz";
sha256 = "ffb601de7a9e40850d4ec3256a3a6bbe8fa40466dafb5c65f41b08e4bb963f1e";
};
# No tests, need to disable or py3k breaks
doCheck = false;
meta = {
description = "Cross-platform audio decoding";
homepage = "https://github.com/sampsyo/audioread";
license = licenses.mit;
};
};
audioread = callPackage ../development/python-modules/audioread { };
audiotools = buildPythonPackage rec {
name = "audiotools-${version}";