python312Packages.flask-allowed-hosts: 1.1.2 -> 1.2.0 (#361132)
[NixPkgs.git] / pkgs / development / python-modules / pytest-base-url / default.nix
blobd7afa906d75b6b1a0b245af8a4562ae9173af834
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   hatchling,
6   hatch-vcs,
7   pytest,
8   pytest-localserver,
9   pytest-metadata,
10   requests,
11   pytestCheckHook,
12   pythonOlder,
15 buildPythonPackage rec {
16   pname = "pytest-base-url";
17   version = "2.1.0";
18   format = "pyproject";
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "pytest-dev";
24     repo = "pytest-base-url";
25     rev = "refs/tags/${version}";
26     hash = "sha256-3P3Uk3QoznAtNODLjXFbeNn3AOfp9owWU2jqkxTEAa4=";
27   };
29   nativeBuildInputs = [
30     hatchling
31     hatch-vcs
32   ];
34   buildInputs = [ pytest ];
36   propagatedBuildInputs = [ requests ];
38   __darwinAllowLocalNetworking = true;
40   nativeCheckInputs = [
41     pytestCheckHook
42     pytest-localserver
43     pytest-metadata
44   ];
46   pytestFlagsArray = [ "tests" ];
48   disabledTests = [
49     # should be xfail? or mocking doesn't work
50     "test_url_fails"
51   ];
53   pythonImportsCheck = [ "pytest_base_url" ];
55   meta = with lib; {
56     description = "pytest plugin for URL based tests";
57     homepage = "https://github.com/pytest-dev/pytest-base-url";
58     changelog = "https://github.com/pytest-dev/pytest-base-url/blob/${src.rev}/CHANGES.rst";
59     license = licenses.mpl20;
60     maintainers = with maintainers; [ sephi ];
61   };