lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python312Packages.betamax: refactor

- disable on unsupported Python releases
- add pythonImportsCheck
- enable tests

authored by

Fabian Affolter and committed by
Martin Weinelt
644593f7 ead3e813

+25 -5
+25 -5
pkgs/development/python-modules/betamax/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchPypi, 5 + pytestCheckHook, 6 + pythonOlder, 5 7 requests, 8 + setuptools, 6 9 }: 7 10 8 11 buildPythonPackage rec { 9 12 pname = "betamax"; 10 13 version = "0.9.0"; 11 - format = "setuptools"; 14 + pyproject = true; 15 + 16 + disabled = pythonOlder "3.8"; 12 17 13 18 src = fetchPypi { 14 19 inherit pname version; 15 20 hash = "sha256-gjFuFnm8aHnjyDMY0Ba1S3ySJf8IxEYt5IE+IgONX5Q="; 16 21 }; 17 22 18 - propagatedBuildInputs = [ requests ]; 23 + build-system = [ setuptools ]; 24 + 25 + dependencies = [ requests ]; 26 + 27 + nativeCheckInputs = [ pytestCheckHook ]; 19 28 20 - doCheck = false; 29 + pythonImportsCheck = [ "betamax" ]; 30 + 31 + disabledTestPaths = [ 32 + # Tests require network access 33 + "tests/integration/test_hooks.py" 34 + "tests/integration/test_placeholders.py" 35 + "tests/integration/test_record_modes.py" 36 + "tests/integration/test_unicode.py" 37 + "tests/regression/test_gzip_compression.py" 38 + "tests/regression/test_requests_2_11_body_matcher.py" 39 + ]; 21 40 22 41 meta = with lib; { 23 - homepage = "https://betamax.readthedocs.org/en/latest/"; 24 - description = "VCR imitation for requests"; 42 + description = "A VCR imitation for requests"; 43 + homepage = "https://betamax.readthedocs.org/"; 44 + changelog = "https://github.com/betamaxpy/betamax/blob/${version}/HISTORY.rst"; 25 45 license = licenses.asl20; 26 46 maintainers = with maintainers; [ pSub ]; 27 47 };