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