python311Packages.pysmartdl: refactor

This commit is contained in:
natsukium 2023-10-11 12:35:10 +09:00
parent 1a44a1ccd5
commit ba4578ecd4
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -1,25 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pysmartdl";
version = "1.3.4";
src = fetchFromGitHub ({
owner = "iTaybb";
repo = pname;
rev = "b93df794e1e60017c42d9520ac097b6fd38c2e8b";
hash = "sha256-Etyv3xCB1cGozWDsskygwcTHJfC+V5hvqBNQAF8SIMM=";
});
pyproject = true;
doCheck = false;
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;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}