1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "betamax";
|
|
version = "0.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gjFuFnm8aHnjyDMY0Ba1S3ySJf8IxEYt5IE+IgONX5Q=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ requests ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "betamax" ];
|
|
|
|
disabledTestPaths = [
|
|
# Tests require network access
|
|
"tests/integration/test_hooks.py"
|
|
"tests/integration/test_placeholders.py"
|
|
"tests/integration/test_record_modes.py"
|
|
"tests/integration/test_unicode.py"
|
|
"tests/regression/test_gzip_compression.py"
|
|
"tests/regression/test_requests_2_11_body_matcher.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "VCR imitation for requests";
|
|
homepage = "https://betamax.readthedocs.org/";
|
|
changelog = "https://github.com/betamaxpy/betamax/blob/${version}/HISTORY.rst";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ pSub ];
|
|
};
|
|
}
|