lol

python310Packages.ascii-magic: 2.1.1 -> 2.3.0

Changelog: https://github.com/LeandroBarone/python-ascii_magic#changelog

- enable tests

+19 -5
+19 -5
pkgs/development/python-modules/ascii-magic/default.nix
··· 3 3 , colorama 4 4 , fetchPypi 5 5 , pillow 6 + , pytestCheckHook 6 7 , pythonOlder 7 8 }: 8 9 9 10 buildPythonPackage rec { 10 11 pname = "ascii-magic"; 11 - version = "2.1.1"; 12 + version = "2.3.0"; 12 13 format = "setuptools"; 13 14 14 15 disabled = pythonOlder "3.7"; ··· 16 17 src = fetchPypi { 17 18 pname = "ascii_magic"; 18 19 inherit version; 19 - hash = "sha256-YfGa+3nuqAAo69TydxO6uKNMcqZAkOEi/PMP8Frasfw="; 20 + hash = "sha256-PtQaHLFn3u1cz8YotmnzWjoD9nvdctzBi+X/2KJkPYU="; 20 21 }; 21 22 22 23 propagatedBuildInputs = [ ··· 24 25 pillow 25 26 ]; 26 27 27 - # Project is not tagging releases and tests are not shipped with PyPI source 28 - # https://github.com/LeandroBarone/python-ascii_magic/issues/10 29 - doCheck = false; 28 + nativeCheckInputs = [ 29 + pytestCheckHook 30 + ]; 30 31 31 32 pythonImportsCheck = [ 32 33 "ascii_magic" 34 + ]; 35 + 36 + preCheck = '' 37 + cd tests 38 + ''; 39 + 40 + disabledTests = [ 41 + # Test requires network access 42 + "test_from_url" 43 + "test_quick_test" 44 + "test_wrong_url" 45 + # No clipboard in the sandbox 46 + "test_from_clipboard" 33 47 ]; 34 48 35 49 meta = with lib; {