Robert Schütz
2024-07-25 10:42:33 -07:00
parent d8a2fa696c
commit 1538319d17

View File

@@ -4,38 +4,34 @@
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
pythonOlder, pythonOlder,
pytest,
pytest-asyncio, pytest-asyncio,
pytestCheckHook, pytestCheckHook,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aresponses"; pname = "aresponses";
version = "2.1.6"; version = "3.0.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "CircleUp"; owner = "aresponses";
repo = pname; repo = "aresponses";
rev = version; rev = version;
hash = "sha256-Ui9ZpWaVBfCbDlZH3EgHX32FIZtyTHnc/UXqtoEyFcw="; hash = "sha256-RklXlIsbdq46/7D6Hv4mdskunqw1a7SFF09OjhrvMRY=";
}; };
propagatedBuildInputs = [ aiohttp ]; build-system = [ setuptools ];
buildInputs = [ dependencies = [
pytest
pytest-asyncio
];
nativeCheckInputs = [
aiohttp aiohttp
pytest-asyncio pytest-asyncio
pytestCheckHook
]; ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ disabledTests = [
# Disable tests which requires network access # Disable tests which requires network access
"test_foo" "test_foo"
@@ -47,8 +43,9 @@ buildPythonPackage rec {
pythonImportsCheck = [ "aresponses" ]; pythonImportsCheck = [ "aresponses" ];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/aresponses/aresponses/blob/${src.rev}/README.md#changelog";
description = "Asyncio testing server"; description = "Asyncio testing server";
homepage = "https://github.com/circleup/aresponses"; homepage = "https://github.com/aresponses/aresponses";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ makefu ]; maintainers = with maintainers; [ makefu ];
}; };