nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 requests, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "betamax"; 12 version = "0.9.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-gjFuFnm8aHnjyDMY0Ba1S3ySJf8IxEYt5IE+IgONX5Q="; 18 }; 19 20 build-system = [ setuptools ]; 21 22 dependencies = [ requests ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "betamax" ]; 27 28 disabledTestPaths = [ 29 # Tests require network access 30 "tests/integration/test_hooks.py" 31 "tests/integration/test_placeholders.py" 32 "tests/integration/test_record_modes.py" 33 "tests/integration/test_unicode.py" 34 "tests/regression/test_gzip_compression.py" 35 "tests/regression/test_requests_2_11_body_matcher.py" 36 ]; 37 38 meta = { 39 description = "VCR imitation for requests"; 40 homepage = "https://betamax.readthedocs.org/"; 41 changelog = "https://github.com/betamaxpy/betamax/blob/${version}/HISTORY.rst"; 42 license = lib.licenses.asl20; 43 maintainers = with lib.maintainers; [ pSub ]; 44 }; 45}