mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
beets: Move into its own package directory.
The primary use of beets is not as a Python library and users usually would expect to install it into the env using "nix-env -i beets" rather than "nix-env -i pythonX.Y-beets". Having beets in its own package directory also allows for better customization, where we're going to implement attributes that can be used to turn on/off various features and plugins. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
fa4b210d3f
commit
58cd4985fd
40
pkgs/tools/audio/beets/default.nix
Normal file
40
pkgs/tools/audio/beets/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ stdenv, fetchurl, buildPythonPackage, pythonPackages, python }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "beets-1.3.6";
|
||||
namePrefix = "";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://pypi.python.org/packages/source/b/beets/${name}.tar.gz";
|
||||
md5 = "59615a54b3ac3983159e77ff9dda373e";
|
||||
};
|
||||
|
||||
# tests depend on $HOME setting
|
||||
preConfigure = "export HOME=$TMPDIR";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pythonPackages.pyyaml
|
||||
pythonPackages.unidecode
|
||||
pythonPackages.mutagen
|
||||
pythonPackages.munkres
|
||||
pythonPackages.musicbrainzngs
|
||||
pythonPackages.enum34
|
||||
pythonPackages.pylast
|
||||
pythonPackages.rarfile
|
||||
pythonPackages.flask
|
||||
python.modules.sqlite3
|
||||
python.modules.readline
|
||||
];
|
||||
|
||||
buildInputs = with pythonPackages; [ mock pyechonest six responses nose ];
|
||||
|
||||
# 10 tests are failing
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = http://beets.radbox.org;
|
||||
description = "Music tagger and library organizer";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = [ stdenv.lib.maintainers.iElectric ];
|
||||
};
|
||||
}
|
|
@ -757,6 +757,8 @@ let
|
|||
|
||||
beanstalkd = callPackage ../servers/beanstalkd { };
|
||||
|
||||
beets = callPackage ../tools/audio/beets { };
|
||||
|
||||
bgs = callPackage ../tools/X11/bgs { };
|
||||
|
||||
biber = callPackage ../tools/typesetting/biber {
|
||||
|
|
|
@ -789,44 +789,6 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
beets = buildPythonPackage rec {
|
||||
name = "beets-1.3.6";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "http://pypi.python.org/packages/source/b/beets/${name}.tar.gz";
|
||||
md5 = "59615a54b3ac3983159e77ff9dda373e";
|
||||
};
|
||||
|
||||
# tests depend on $HOME setting
|
||||
preConfigure = "export HOME=$TMPDIR";
|
||||
|
||||
propagatedBuildInputs =
|
||||
[ self.pyyaml
|
||||
self.unidecode
|
||||
self.mutagen
|
||||
self.munkres
|
||||
self.musicbrainzngs
|
||||
self.enum34
|
||||
self.pylast
|
||||
self.rarfile
|
||||
self.flask
|
||||
modules.sqlite3
|
||||
modules.readline
|
||||
];
|
||||
|
||||
buildInputs = with self; [ mock pyechonest six responses nose ];
|
||||
|
||||
# 10 tests are failing
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = http://beets.radbox.org;
|
||||
description = "Music tagger and library organizer";
|
||||
license = licenses.mit;
|
||||
maintainers = [ stdenv.lib.maintainers.iElectric ];
|
||||
};
|
||||
};
|
||||
|
||||
circus = buildPythonPackage rec {
|
||||
name = "circus-0.11.1";
|
||||
|
||||
|
|
Loading…
Reference in a new issue