From 6e9b7bf66b920779657f7cc57fe939b1620a7797 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 14 Sep 2022 05:39:24 +0000 Subject: python310Packages.pytest-httpserver: 1.0.5 -> 1.0.6 --- pkgs/development/python-modules/pytest-httpserver/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/development/python-modules/pytest-httpserver') diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix index 4b58c71cc656..cba9a9294e7c 100644 --- a/pkgs/development/python-modules/pytest-httpserver/default.nix +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -9,12 +9,12 @@ buildPythonPackage rec { pname = "pytest-httpserver"; - version = "1.0.5"; + version = "1.0.6"; src = fetchPypi { pname = "pytest_httpserver"; inherit version; - sha256 = "sha256-rjKWYm0KEOg1qfQjxhtFQFR9WCQivgVMP8wIYmuqECQ="; + sha256 = "sha256-kEDQe/WaxF2N49sdRGj9LR1geXXk2kyHLswEAs2/ez4="; }; propagatedBuildInputs = [ werkzeug ]; -- cgit v1.2.3 From a4a1e28e2d3fcbb9efa9e4f4fdc238623148a0d8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 25 Dec 2022 20:51:57 +0100 Subject: python310Packages.pytest-httpserver: add changelog to meta - switch to pyproject - adjust inputs --- .../python-modules/pytest-httpserver/default.nix | 33 ++++++++++++++++------ 1 file changed, 24 insertions(+), 9 deletions(-) (limited to 'pkgs/development/python-modules/pytest-httpserver') diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix index cba9a9294e7c..eebbcacb5037 100644 --- a/pkgs/development/python-modules/pytest-httpserver/default.nix +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -1,35 +1,50 @@ { lib , buildPythonPackage -, fetchPypi -, pytest-cov +, fetchFromGitHub +, poetry-core , pytestCheckHook +, pythonOlder , requests +, toml , werkzeug }: buildPythonPackage rec { pname = "pytest-httpserver"; version = "1.0.6"; + format = "pyproject"; - src = fetchPypi { - pname = "pytest_httpserver"; - inherit version; - sha256 = "sha256-kEDQe/WaxF2N49sdRGj9LR1geXXk2kyHLswEAs2/ez4="; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "csernazs"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-LY5Ur0cIcsNrgvyQlY2E479ZzRcuwqTuiT2MtRupVcs="; }; - propagatedBuildInputs = [ werkzeug ]; + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + werkzeug + ]; checkInputs = [ - pytest-cov pytestCheckHook requests + toml ]; - pythonImportsCheck = [ "pytest_httpserver" ]; + pythonImportsCheck = [ + "pytest_httpserver" + ]; meta = with lib; { description = "HTTP server for pytest to test HTTP clients"; homepage = "https://www.github.com/csernazs/pytest-httpserver"; + changelog = "https://github.com/csernazs/pytest-httpserver/blob/${version}/CHANGES.rst"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; -- cgit v1.2.3 From 33afbf39f6f2a6b37e99f070ba7d17a28c416d02 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sat, 21 Jan 2023 12:00:00 +0000 Subject: treewide: switch to nativeCheckInputs checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs. --- pkgs/development/python-modules/pytest-httpserver/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/development/python-modules/pytest-httpserver') diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix index eebbcacb5037..1c69f426b169 100644 --- a/pkgs/development/python-modules/pytest-httpserver/default.nix +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { werkzeug ]; - checkInputs = [ + nativeCheckInputs = [ pytestCheckHook requests toml -- cgit v1.2.3 From b5724354b7345329d5ba3aba04223a5655dc9304 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 2 Feb 2023 15:42:40 +0100 Subject: python310Packages.pytest-httpserver: Fix tests on darwin --- pkgs/development/python-modules/pytest-httpserver/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkgs/development/python-modules/pytest-httpserver') diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix index 1c69f426b169..feae84901304 100644 --- a/pkgs/development/python-modules/pytest-httpserver/default.nix +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -37,6 +37,12 @@ buildPythonPackage rec { toml ]; + __darwinAllowLocalNetworking = true; + + disabledTests = [ + "test_wait_raise_assertion_false" # racy + ]; + pythonImportsCheck = [ "pytest_httpserver" ]; -- cgit v1.2.3 From 2c3472e0016e905c77e7e62a58ea115861a817b1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 May 2023 00:29:53 +0200 Subject: python311Packages.pytest-httpserver: 1.0.6 -> 1.0.7 Diff: https://github.com/csernazs/pytest-httpserver/compare/refs/tags/1.0.6...1.0.7 Changelog: https://github.com/csernazs/pytest-httpserver/blob/1.0.7/CHANGES.rst --- pkgs/development/python-modules/pytest-httpserver/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/development/python-modules/pytest-httpserver') diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix index feae84901304..01ef1025904e 100644 --- a/pkgs/development/python-modules/pytest-httpserver/default.nix +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "pytest-httpserver"; - version = "1.0.6"; + version = "1.0.7"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "csernazs"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-LY5Ur0cIcsNrgvyQlY2E479ZzRcuwqTuiT2MtRupVcs="; + hash = "sha256-bjysG+7niSUBl8YMWR8pr7oOz9GDbSfq3PeloYBkq3s="; }; nativeBuildInputs = [ -- cgit v1.2.3