2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, hatchling
|
|
|
|
, hatch-vcs
|
2023-01-11 07:51:40 +00:00
|
|
|
, pytest
|
|
|
|
, pytest-localserver
|
2024-04-21 15:54:59 +00:00
|
|
|
, pytest-metadata
|
2023-01-11 07:51:40 +00:00
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-base-url";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.1.0";
|
2023-01-11 07:51:40 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytest-dev";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "pytest-base-url";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-3P3Uk3QoznAtNODLjXFbeNn3AOfp9owWU2jqkxTEAa4=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-11 07:51:40 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-localserver
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest-metadata
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests"
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# should be xfail? or mocking doesn't work
|
|
|
|
"test_url_fails"
|
|
|
|
];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_base_url"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "pytest plugin for URL based tests";
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-base-url";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/pytest-dev/pytest-base-url/blob/${src.rev}/CHANGES.rst";
|
2023-01-11 07:51:40 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ sephi ];
|
|
|
|
};
|
|
|
|
}
|