Merge pull request #114618 from fortuneteller2k/add-sacad

This commit is contained in:
Sandro 2021-03-05 17:42:57 +01:00 committed by GitHub
commit 054e9b37fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
pname = "web-cache";
version = "1.1.0";
disabled = !isPy3k;
src = fetchPypi {
inherit version;
pname = "web_cache";
sha256 = "1d8f1s3i0s3h1jqvjq6cp639hhbbpxvyq7cf9dwzrvvvr0s0m8fm";
};
# 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.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

@ -7768,6 +7768,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

@ -8428,6 +8428,8 @@ in {
web = callPackage ../development/python-modules/web { };
web-cache = callPackage ../development/python-modules/web-cache { };
webcolors = callPackage ../development/python-modules/webcolors { };
webdavclient3 = callPackage ../development/python-modules/webdavclient3 { };