python3Packages.pytest-base-url: init at 2.0.0
This commit is contained in:
parent
efc99b074c
commit
44b991df66
41
pkgs/development/python-modules/pytest-base-url/default.nix
Normal file
41
pkgs/development/python-modules/pytest-base-url/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -8824,6 +8824,8 @@ self: super: with self; {
|
|||
pytest-cache = self.pytestcache; # added 2021-01-04
|
||||
pytestcache = callPackage ../development/python-modules/pytestcache { };
|
||||
|
||||
pytest-base-url = callPackage ../development/python-modules/pytest-base-url { };
|
||||
|
||||
pytest-cases = callPackage ../development/python-modules/pytest-cases{ };
|
||||
|
||||
pytest-catchlog = callPackage ../development/python-modules/pytest-catchlog { };
|
||||
|
|
Loading…
Reference in a new issue