1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "pysmartdl"; 10 version = "1.3.4"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "iTaybb"; 15 repo = "pySmartDL"; 16 rev = "refs/tags/v${version}"; 17 hash = "sha256-Etyv3xCB1cGozWDsskygwcTHJfC+V5hvqBNQAF8SIMM="; 18 }; 19 20 nativeBuildInputs = [ 21 setuptools 22 ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 ]; 27 28 disabledTests = [ 29 # touch the network 30 "test_basic_auth" 31 "test_custom_headers" 32 "test_download" 33 "test_hash" 34 "test_mirrors" 35 "test_pause_unpause" 36 "test_speed_limiting" 37 "test_stop" 38 "test_timeout" 39 "test_unicode" 40 ]; 41 42 pythonImportsCheck = [ 43 "pySmartDL" 44 ]; 45 46 meta = with lib; { 47 homepage = "https://github.com/iTaybb/pySmartDL"; 48 description = "A Smart Download Manager for Python"; 49 changelog = "https://github.com/iTaybb/pySmartDL/blob/${src.rev}/ChangeLog.txt"; 50 license = licenses.unlicense; 51 maintainers = with maintainers; [ ]; 52 }; 53}