diff options
| author | Sylvain Fankhauser <sephi@fhtagn.top> | 2022-12-23 14:30:12 +0100 |
|---|---|---|
| committer | Sylvain Fankhauser <sephi@fhtagn.top> | 2023-01-05 09:03:27 +0100 |
| commit | 44b991df661494de6be6c45dba73637548c060de (patch) | |
| tree | 4c8eaed53989cf86eabc3b787c927e6627d17d4b /pkgs/development/python-modules/pytest-base-url | |
| parent | efc99b074cb9d90c4f1f7535f47336492be3664b (diff) | |
python3Packages.pytest-base-url: init at 2.0.0
Diffstat (limited to 'pkgs/development/python-modules/pytest-base-url')
| -rw-r--r-- | pkgs/development/python-modules/pytest-base-url/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-base-url/default.nix b/pkgs/development/python-modules/pytest-base-url/default.nix new file mode 100644 index 000000000000..02b90f742097 --- /dev/null +++ b/pkgs/development/python-modules/pytest-base-url/default.nix @@ -0,0 +1,41 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, poetry-core +, pytest +, pytest-localserver +, requests +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pytest-base-url"; + version = "2.0.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "pytest-dev"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-v6pLejWNeb9Do6x2EJqmLKj8DNqcMtmYIs+7iDYsbjk="; + }; + + nativeBuildInputs = [ poetry-core ]; + + buildInputs = [ pytest ]; + + propagatedBuildInputs = [ requests ]; + + checkInputs = [ pytestCheckHook pytest-localserver ]; + + pytestFlagsArray = [ "tests" ]; + + pythonImportsCheck = [ "pytest_base_url" ]; + + meta = with lib; { + description = "pytest plugin for URL based tests"; + homepage = "https://github.com/pytest-dev/pytest-base-url"; + license = licenses.mpl20; + maintainers = with maintainers; [ sephi ]; + }; +} |
