python3Packages.pytest-playwright: add changelog to meta
This commit is contained in:
parent
71a7045b3b
commit
342848bb59
|
@ -8,29 +8,38 @@
|
||||||
, python-slugify
|
, python-slugify
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, python
|
|
||||||
, django
|
, django
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-playwright";
|
pname = "pytest-playwright";
|
||||||
version = "0.3.0";
|
version = "0.3.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "microsoft";
|
owner = "microsoft";
|
||||||
repo = "playwright-pytest";
|
repo = "playwright-pytest";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-fHzQxbQBSEkCFu/ualjzSmIt3SiEa2ktTvIJKPZLT9Q=";
|
hash = "sha256-fHzQxbQBSEkCFu/ualjzSmIt3SiEa2ktTvIJKPZLT9Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ pytest ];
|
buildInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ playwright pytest-base-url python-slugify ];
|
propagatedBuildInputs = [
|
||||||
|
playwright
|
||||||
|
pytest-base-url
|
||||||
|
python-slugify
|
||||||
|
];
|
||||||
|
|
||||||
# Most of the tests rely on network access, or on unavailable browsers such as
|
# Most of the tests rely on network access, or on unavailable browsers such as
|
||||||
# msedge, chrome or webkit
|
# msedge, chrome or webkit
|
||||||
|
@ -40,11 +49,14 @@ buildPythonPackage rec {
|
||||||
export PLAYWRIGHT_BROWSERS_PATH=${playwright.browsers}
|
export PLAYWRIGHT_BROWSERS_PATH=${playwright.browsers}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "pytest_playwright" ];
|
pythonImportsCheck = [
|
||||||
|
"pytest_playwright"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pytest plugin to write end-to-end browser tests with Playwright";
|
description = "Pytest plugin to write end-to-end browser tests with Playwright";
|
||||||
homepage = "https://github.com/microsoft/playwright-pytest";
|
homepage = "https://github.com/microsoft/playwright-pytest";
|
||||||
|
changelog = "https://github.com/microsoft/playwright-pytest/releases/tag/v${version}";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ sephi ];
|
maintainers = with maintainers; [ sephi ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue