sacad: init at 2.3.4

This commit is contained in:
fortuneteller2k 2021-02-28 15:33:50 +08:00
parent eb7235a768
commit 38ea3741bc
4 changed files with 50 additions and 7 deletions

View file

@ -1,23 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
pname = "web_cache";
pname = "web-cache";
version = "1.1.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
inherit version;
pname = "web_cache";
sha256 = "1d8f1s3i0s3h1jqvjq6cp639hhbbpxvyq7cf9dwzrvvvr0s0m8fm";
};
disabled = !isPy3k;
# web_cache doesn't have tests
# No tests in downloaded archive
doCheck = false;
pythonImportsCheck = [ "web_cache" ];
meta = with lib; {
description = "Simple Python key-value storage backed up by sqlite3 database";
homepage = "https://github.com/desbma/web_cache";
license = licenses.lgpl21Only;
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ fortuneteller2k ];
};
}

View file

@ -0,0 +1,39 @@
{ lib, python3Packages, jpegoptim, optipng }:
python3Packages.buildPythonApplication rec {
pname = "sacad";
version = "2.3.4";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "1qv2mrz6vy2sl7zhrj9vw016pjd7hmjr2ls0w8bbv1hgrddicn9r";
};
propagatedBuildInputs = with python3Packages; [
aiohttp
appdirs
bitarray
cssselect
fake-useragent
lxml
mutagen
pillow
tqdm
unidecode
web-cache
jpegoptim
optipng
];
# tests require internet connection
doCheck = false;
pythonImportsCheck = [ "sacad" ];
meta = with lib; {
description = "Smart Automatic Cover Art Downloader";
homepage = "https://github.com/desbma/sacad";
license = licenses.mpl20;
maintainers = with maintainers; [ fortuneteller2k ];
};
}

View file

@ -7732,6 +7732,8 @@ in
s6-portable-utils = skawarePackages.s6-portable-utils;
sacad = callPackage ../tools/misc/sacad { };
safecopy = callPackage ../tools/system/safecopy { };
sacd = callPackage ../tools/cd-dvd/sacd { };

View file

@ -8372,7 +8372,7 @@ in {
web = callPackage ../development/python-modules/web { };
web_cache = callPackage ../development/python-modules/web_cache { };
web-cache = callPackage ../development/python-modules/web-cache { };
webcolors = callPackage ../development/python-modules/webcolors { };