1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, poetry-core
5, pytest
6, pytest-localserver
7, requests
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-base-url";
14 version = "2.0.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "pytest-dev";
21 repo = pname;
22 rev = "refs/tags/v${version}";
23 hash = "sha256-v6pLejWNeb9Do6x2EJqmLKj8DNqcMtmYIs+7iDYsbjk=";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 ];
29
30 buildInputs = [
31 pytest
32 ];
33
34 propagatedBuildInputs = [
35 requests
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 pytest-localserver
41 ];
42
43 pytestFlagsArray = [
44 "tests"
45 ];
46
47 pythonImportsCheck = [
48 "pytest_base_url"
49 ];
50
51 meta = with lib; {
52 description = "pytest plugin for URL based tests";
53 homepage = "https://github.com/pytest-dev/pytest-base-url";
54 changelog = "https://github.com/pytest-dev/pytest-base-url/blob/v${version}/CHANGES.rst";
55 license = licenses.mpl20;
56 maintainers = with maintainers; [ sephi ];
57 };
58}