From 7e5d00e0ec5ec4e516c4357aa769d4412612df5a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 10 Jan 2023 14:26:33 +0100 Subject: [PATCH] python310Packages.pytest-base-url: add changelog to meta --- .../pytest-base-url/default.nix | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pytest-base-url/default.nix b/pkgs/development/python-modules/pytest-base-url/default.nix index 02b90f74209..d388c840a00 100644 --- a/pkgs/development/python-modules/pytest-base-url/default.nix +++ b/pkgs/development/python-modules/pytest-base-url/default.nix @@ -6,6 +6,7 @@ , pytest-localserver , requests , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { @@ -13,28 +14,44 @@ buildPythonPackage rec { version = "2.0.0"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "pytest-dev"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-v6pLejWNeb9Do6x2EJqmLKj8DNqcMtmYIs+7iDYsbjk="; + rev = "refs/tags/v${version}"; + hash = "sha256-v6pLejWNeb9Do6x2EJqmLKj8DNqcMtmYIs+7iDYsbjk="; }; - nativeBuildInputs = [ poetry-core ]; + nativeBuildInputs = [ + poetry-core + ]; - buildInputs = [ pytest ]; + buildInputs = [ + pytest + ]; - propagatedBuildInputs = [ requests ]; + propagatedBuildInputs = [ + requests + ]; - checkInputs = [ pytestCheckHook pytest-localserver ]; + checkInputs = [ + pytestCheckHook + pytest-localserver + ]; - pytestFlagsArray = [ "tests" ]; + pytestFlagsArray = [ + "tests" + ]; - pythonImportsCheck = [ "pytest_base_url" ]; + pythonImportsCheck = [ + "pytest_base_url" + ]; meta = with lib; { description = "pytest plugin for URL based tests"; homepage = "https://github.com/pytest-dev/pytest-base-url"; + changelog = "https://github.com/pytest-dev/pytest-base-url/blob/v${version}/CHANGES.rst"; license = licenses.mpl20; maintainers = with maintainers; [ sephi ]; };