uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
69
pkgs/tools/misc/swaglyrics/default.nix
Normal file
69
pkgs/tools/misc/swaglyrics/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, ncurses
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "swaglyrics";
|
||||
version = "unstable-2021-06-17";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SwagLyrics";
|
||||
repo = "SwagLyrics-For-Spotify";
|
||||
rev = "99fe764a9e45cac6cb9fcdf724c7d2f8cb4524fb";
|
||||
hash = "sha256-O48T1WsUIVnNQb8gmzSkFFHTOiFOKVSAEYhF9zUqZz0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
beautifulsoup4
|
||||
colorama
|
||||
flask
|
||||
requests
|
||||
swspotify
|
||||
unidecode
|
||||
];
|
||||
|
||||
checkInputs = with python3.pkgs; [
|
||||
blinker
|
||||
flask
|
||||
flask-testing
|
||||
mock
|
||||
pytestCheckHook
|
||||
] ++ [
|
||||
ncurses
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'beautifulsoup4==4.9.3' 'beautifulsoup4>=4.9.3' \
|
||||
--replace 'unidecode==1.2.0' 'unidecode>=1.2.0' \
|
||||
--replace 'flask==2.0.1' 'flask>=2.0.1'
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Disable tests which touch network
|
||||
"test_database_for_unsupported_song"
|
||||
"test_that_lyrics_works_for_unsupported_songs"
|
||||
"test_that_get_lyrics_works"
|
||||
"test_lyrics_are_shown_in_tab"
|
||||
"test_songchanged_can_raise_songplaying"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"swaglyrics"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Lyrics fetcher for currently playing Spotify song";
|
||||
homepage = "https://github.com/SwagLyrics/SwagLyrics-For-Spotify";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ siraben ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue