mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
anki: Switch dependency to beautifulsoup-3
The current upstream development version is using 4 but the release version is still using 3.
This commit is contained in:
parent
f575062f97
commit
c28911e0f9
20
pkgs/games/anki/beautifulsoup.nix
Normal file
20
pkgs/games/anki/beautifulsoup.nix
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{ pythonPackages, isPy3k, pkgs }:
|
||||||
|
|
||||||
|
pythonPackages.buildPythonPackage rec {
|
||||||
|
name = "beautifulsoup-3.2.1";
|
||||||
|
disabled = isPy3k;
|
||||||
|
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "http://www.crummy.com/software/BeautifulSoup/download/3.x/BeautifulSoup-3.2.1.tar.gz";
|
||||||
|
sha256 = "1nshbcpdn0jpcj51x0spzjp519pkmqz0n0748j7dgpz70zlqbfpm";
|
||||||
|
};
|
||||||
|
|
||||||
|
# error: invalid command 'test'
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://www.crummy.com/software/BeautifulSoup/;
|
||||||
|
license = "bsd";
|
||||||
|
description = "Undemanding HTML/XML parser";
|
||||||
|
};
|
||||||
|
}
|
@ -10,6 +10,12 @@ let
|
|||||||
version = "2.0.47";
|
version = "2.0.47";
|
||||||
inherit (python2Packages) python wrapPython sqlalchemy pyaudio beautifulsoup4 httplib2 matplotlib pyqt4;
|
inherit (python2Packages) python wrapPython sqlalchemy pyaudio beautifulsoup4 httplib2 matplotlib pyqt4;
|
||||||
qt4 = pyqt4.qt;
|
qt4 = pyqt4.qt;
|
||||||
|
|
||||||
|
# Development version of anki has bumped to beautifulsoup4
|
||||||
|
beautifulsoup = python2Packages.callPackage ./beautifulsoup.nix {
|
||||||
|
pythonPackages = python2Packages;
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "anki-${version}";
|
name = "anki-${version}";
|
||||||
@ -22,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "067bsidqzy1zc301i2pk4biwp2kwvgk4kydp5z5s551acinkbdgv";
|
sha256 = "067bsidqzy1zc301i2pk4biwp2kwvgk4kydp5z5s551acinkbdgv";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonPath = [ pyqt4 sqlalchemy pyaudio beautifulsoup4 httplib2 ]
|
pythonPath = [ pyqt4 sqlalchemy pyaudio beautifulsoup httplib2 ]
|
||||||
++ lib.optional plotsSupport matplotlib;
|
++ lib.optional plotsSupport matplotlib;
|
||||||
|
|
||||||
buildInputs = [ python wrapPython lame mplayer libpulseaudio ];
|
buildInputs = [ python wrapPython lame mplayer libpulseaudio ];
|
||||||
|
Loading…
Reference in New Issue
Block a user