summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-httpserver
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-01-15 00:13:48 +0000
committerGitHub <noreply@github.com>2023-01-15 00:13:48 +0000
commita9fe51f0916e76e8595c225334634b7d343b8441 (patch)
tree7e68d9a21cd2c0b9d60cea3d61fa616282265798 /pkgs/development/python-modules/pytest-httpserver
parent139ec83e3e28974d236343df979a20479ecc38d9 (diff)
parentd726ea1e12dec66801e498f94eae5d1fa8a0584a (diff)
Merge master into haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/pytest-httpserver')
-rw-r--r--pkgs/development/python-modules/pytest-httpserver/default.nix33
1 files changed, 24 insertions, 9 deletions
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 ];
};