From c438e62013d4fab71a2d210fa8a5fa99146eaa91 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Jul 2023 08:54:02 +0200 Subject: [PATCH] python311Packages.mechanicalsoup: add changelog to meta --- .../python-modules/mechanicalsoup/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/mechanicalsoup/default.nix b/pkgs/development/python-modules/mechanicalsoup/default.nix index 4d68f71d2b06..f7200addb21f 100644 --- a/pkgs/development/python-modules/mechanicalsoup/default.nix +++ b/pkgs/development/python-modules/mechanicalsoup/default.nix @@ -21,10 +21,18 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "MechanicalSoup"; repo = "MechanicalSoup"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-Q5oDAgAZYYUYqjDByXNXFNVKmRyjzIGVE4LN9j8vk4c="; }; + postPatch = '' + # Is in setup_requires but not used in setup.py + substituteInPlace setup.py \ + --replace "'pytest-runner'" "" + substituteInPlace setup.cfg \ + --replace " --cov --cov-config .coveragerc --flake8" "" + ''; + propagatedBuildInputs = [ beautifulsoup4 lxml @@ -38,14 +46,6 @@ buildPythonPackage rec { requests-mock ]; - postPatch = '' - # Is in setup_requires but not used in setup.py - substituteInPlace setup.py \ - --replace "'pytest-runner'" "" - substituteInPlace setup.cfg \ - --replace " --cov --cov-config .coveragerc --flake8" "" - ''; - pythonImportsCheck = [ "mechanicalsoup" ]; @@ -53,6 +53,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python library for automating interaction with websites"; homepage = "https://github.com/hickford/MechanicalSoup"; + changelog = "https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ jgillich fab ]; };