Merge pull request #260345 from natsukium/pysmartdl

python311Packages.pysmartdl: rename from pySmartDL
This commit is contained in:
Fabian Affolter 2023-10-15 09:55:58 +02:00 committed by GitHub
commit 210ef79796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 27 deletions

View file

@ -25,7 +25,7 @@ python3.pkgs.buildPythonApplication rec {
fuzzywuzzy
jsbeautifier
pycryptodome
pySmartDL
pysmartdl
pyqt5
requests
requests-cache

View file

@ -1,25 +0,0 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "pySmartDL";
version = "1.3.4";
src = fetchFromGitHub ({
owner = "iTaybb";
repo = pname;
rev = "b93df794e1e60017c42d9520ac097b6fd38c2e8b";
hash = "sha256-Etyv3xCB1cGozWDsskygwcTHJfC+V5hvqBNQAF8SIMM=";
});
doCheck = false;
meta = with lib; {
homepage = "https://github.com/iTaybb/pySmartDL";
description = "A Smart Download Manager for Python";
license = licenses.unlicense;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}

View file

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pysmartdl";
version = "1.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "iTaybb";
repo = "pySmartDL";
rev = "refs/tags/v${version}";
hash = "sha256-Etyv3xCB1cGozWDsskygwcTHJfC+V5hvqBNQAF8SIMM=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# touch the network
"test_basic_auth"
"test_custom_headers"
"test_download"
"test_hash"
"test_mirrors"
"test_pause_unpause"
"test_speed_limiting"
"test_stop"
"test_timeout"
"test_unicode"
];
pythonImportsCheck = [
"pySmartDL"
];
meta = with lib; {
homepage = "https://github.com/iTaybb/pySmartDL";
description = "A Smart Download Manager for Python";
changelog = "https://github.com/iTaybb/pySmartDL/blob/${src.rev}/ChangeLog.txt";
license = licenses.unlicense;
maintainers = with maintainers; [ ];
};
}

View file

@ -308,6 +308,7 @@ mapAliases ({
pyruckus = throw "pyruckus has been removed, it was deprecrated in favor of aioruckus."; # added 2023-09-07
pysha3 = throw "pysha3 has been removed, use safe-pysha3 instead"; # added 2023-05-20
pysmart-smartx = pysmart; # added 2021-10-22
pySmartDL = pysmartdl; # added 2023-10-11
pysparse = throw "pysparse has been abandoned upstream."; # added 2023-02-28
pyspotify = throw "pyspotify has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29
PyStemmer = pystemmer; # added 2023-02-19

View file

@ -10866,7 +10866,7 @@ self: super: with self; {
pysmartapp = callPackage ../development/python-modules/pysmartapp { };
pySmartDL = callPackage ../development/python-modules/pySmartDL { };
pysmartdl = callPackage ../development/python-modules/pysmartdl { };
pysmartthings = callPackage ../development/python-modules/pysmartthings { };