summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2023-09-10 11:12:11 +0200
committerGitHub <noreply@github.com>2023-09-10 11:12:11 +0200
commitb0667ddd545b1209c8b53b0fd5083ab4218e8909 (patch)
treec40b1d7f9beacbde2f5fd6f4759d4f71f25ca1bc
parentMerge pull request #254345 from fabaff/truststore-bump (diff)
parentpython311Packages.sseclient-py: add pythonImportsCheck (diff)
downloadnixpkgs-b0667ddd545b1209c8b53b0fd5083ab4218e8909.tar.gz
Merge pull request #254344 from fabaff/sseclient-py-bump
python311Packages.sseclient-py: 1.7.2 -> 1.8.0
-rw-r--r--pkgs/development/python-modules/sseclient-py/default.nix30
1 files changed, 23 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/sseclient-py/default.nix b/pkgs/development/python-modules/sseclient-py/default.nix
index 54dfdd9d9498..5e9fcf4c61e9 100644
--- a/pkgs/development/python-modules/sseclient-py/default.nix
+++ b/pkgs/development/python-modules/sseclient-py/default.nix
@@ -1,24 +1,40 @@
-{ buildPythonPackage, fetchFromGitHub, lib, python }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
+, pytestCheckHook
+}:
buildPythonPackage rec {
pname = "sseclient-py";
- version = "1.7.2";
+ version = "1.8.0";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mpetazzoni";
repo = "sseclient";
rev = "sseclient-py-${version}";
- sha256 = "096spyv50jir81xiwkg9l88ycp1897d3443r6gi1by8nkp4chvix";
+ hash = "sha256-rNiJqR7/e+Rhi6kVBY8gZJZczqSUsyszotXkb4OKfWk=";
};
- # based on tox.ini
- checkPhase = ''
- ${python.interpreter} tests/unittests.py
- '';
+ nativeCheckInputs = [
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [
+ "sseclient"
+ ];
+
+ pytestFlagsArray = [
+ "tests/unittests.py"
+ ];
meta = with lib; {
description = "Pure-Python Server Side Events (SSE) client";
homepage = "https://github.com/mpetazzoni/sseclient";
+ changelog = "https://github.com/mpetazzoni/sseclient/releases/tag/sseclient-py-${version}";
license = licenses.asl20;
maintainers = with maintainers; [ jamiemagee ];
};