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
50 lines
1010 B
Nix
50 lines
1010 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-asyncio_0,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aresponses";
|
|
version = "3.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aresponses";
|
|
repo = "aresponses";
|
|
rev = version;
|
|
hash = "sha256-RklXlIsbdq46/7D6Hv4mdskunqw1a7SFF09OjhrvMRY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
pytest-asyncio_0
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# Disable tests which requires network access
|
|
"test_foo"
|
|
"test_passthrough"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [ "aresponses" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/aresponses/aresponses/blob/${src.rev}/README.md#changelog";
|
|
description = "Asyncio testing server";
|
|
homepage = "https://github.com/aresponses/aresponses";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ makefu ];
|
|
};
|
|
}
|