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
55 lines
980 B
Nix
55 lines
980 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
|
|
# build-system
|
|
pbr,
|
|
setuptools,
|
|
|
|
# dependencies
|
|
aiohttp,
|
|
|
|
# tests
|
|
ddt,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioresponses";
|
|
version = "0.7.8";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-uGHN/l3FjzuK+sewppc9XXsstgjdD2JT0WuO6Or23xE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pbr
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [ aiohttp ];
|
|
|
|
pythonImportsCheck = [ "aioresponses" ];
|
|
|
|
nativeCheckInputs = [
|
|
ddt
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Skip tests which make requests to httpbin.org
|
|
"test_address_as_instance_of_url_combined_with_pass_through"
|
|
"test_pass_through_with_origin_params"
|
|
"test_pass_through_unmatched_requests"
|
|
];
|
|
|
|
meta = {
|
|
description = "Helper to mock/fake web requests in python aiohttp package";
|
|
homepage = "https://github.com/pnuckowski/aioresponses";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|