summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-11-27 09:08:03 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-01-08 06:43:38 +0100
commitb5d8579dbf1d01f8448b7548585d783bcaeb1816 (patch)
tree7facdbd7939df255d5f2900ff3578c0cc7d6aa44
parentpython310Packages.sanic-routing: add changelog to meta (diff)
downloadnixpkgs-b5d8579dbf1d01f8448b7548585d783bcaeb1816.tar.gz
python310Packages.sanic-testing: add changelog to meta
(cherry picked from commit 7a2ea0b528af49c768c46ddf86cad3c044793e79)
-rw-r--r--pkgs/development/python-modules/sanic-testing/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/sanic-testing/default.nix b/pkgs/development/python-modules/sanic-testing/default.nix
index 120f80b57e22..3dc033808c3f 100644
--- a/pkgs/development/python-modules/sanic-testing/default.nix
+++ b/pkgs/development/python-modules/sanic-testing/default.nix
@@ -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 ];
};