python310Packages.sanic-testing: add changelog to meta

This commit is contained in:
Fabian Affolter
2022-11-27 09:08:03 +01:00
parent 22c724cd5a
commit 7a2ea0b528
@@ -1,21 +1,25 @@
{ lib
, buildPythonPackage
, callPackage
, fetchFromGitHub
, httpx
, pythonOlder
, sanic
, websockets
, callPackage
}:
buildPythonPackage rec {
pname = "sanic-testing";
version = "22.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sanic-org";
repo = "sanic-testing";
rev = "refs/tags/v${version}";
sha256 = "sha256-6aJyc5B9e65RPG3FwXAoQByVNdrLAWTEu2/Dqf9hf+g=";
hash = "sha256-6aJyc5B9e65RPG3FwXAoQByVNdrLAWTEu2/Dqf9hf+g=";
};
outputs = [
@@ -23,10 +27,6 @@ buildPythonPackage rec {
"testsout"
];
postPatch = ''
sed -i 's/httpx>=.*"/httpx"/' setup.py
'';
propagatedBuildInputs = [
httpx
sanic
@@ -38,8 +38,9 @@ buildPythonPackage rec {
cp -R tests $testsout/tests
'';
# check in passthru.tests.pytest to escape infinite recursion with sanic
# Check in passthru.tests.pytest to escape infinite recursion with sanic
doCheck = false;
doInstallCheck = false;
passthru.tests = {
@@ -49,6 +50,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Core testing clients for the Sanic web framework";
homepage = "https://github.com/sanic-org/sanic-testing";
changelog = "https://github.com/sanic-org/sanic-testing/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ AluisioASG ];
};