New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linkchecker: 9.3 -> 9.3.1 #36228
linkchecker: 9.3 -> 9.3.1 #36228
Conversation
src = fetchurl { | ||
url = "mirror://pypi/L/LinkChecker/${name}.tar.gz"; | ||
sha256 = "0v8pavf0bx33xnz1kwflv0r7lxxwj7vg3syxhy2wzza0wh6sc2pf"; | ||
# the original repository is abandoned, development is now happening here: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably also update the homepage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta.homepage is updated.
i think i worked out all the kinks now :)
propagatedBuildInputs = with python2Packages;[ | ||
# pin requests version until next release. | ||
# see: https://github.com/linkcheck/linkchecker/issues/76 | ||
(requests.overridePythonAttrs(old: rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a look at https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/home-assistant/default.nix for how to pin dependency version.
|
||
python2Packages.buildPythonApplication rec { | ||
name = "LinkChecker-${version}"; | ||
version = "9.3"; | ||
version = "9.3.1"; | ||
|
||
buildInputs = with python2Packages ; [ pytest ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkInputs
@@ -1,22 +1,36 @@ | |||
{ stdenv, lib, fetchurl, python2Packages, gettext }: | |||
{ stdenv, lib, fetchFromGitHub, python2Packages, gettext }: | |||
|
|||
python2Packages.buildPythonApplication rec { | |||
name = "LinkChecker-${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please specify pname
instead.
patches = [ | ||
./add-no-robots-flag.patch | ||
./no-version-check.patch | ||
./e62e630e606a648ec2969551a74f2e68e9853f49.patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use fetchpatch
for that.
c146b3a
to
775888b
Compare
@dotlambda |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tw-360vier I have done some cosmetic changes. Please pull these, do the requested changes and squash the commits. Also please prefix your commit message with (EDIT: sorry, it's not in the pythonPackages.
pythonPackages
namespace, no prefix then)
python2Packages.buildPythonApplication rec { | ||
name = "LinkChecker-${version}"; | ||
version = "9.3"; | ||
pname = "LinkChecker-${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pname
should not include the version. name
will be set to "${pname}-${version}"
automatically
@@ -35,7 +62,7 @@ python2Packages.buildPythonApplication rec { | |||
|
|||
meta = { | |||
description = "Check websites for broken links"; | |||
homepage = https://wummel.github.io/linkchecker/; | |||
homepage = https://linkcheck.github.io/linkchecker/; | |||
license = lib.licenses.gpl2; | |||
maintainers = with lib.maintainers; [ peterhoeg ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to become a maintainer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shure, i'll add myself when i update the pull request
src = fetchFromGitHub { | ||
owner = "linkcheck"; | ||
repo = "linkchecker"; | ||
rev = "v${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dotlambda
should "version" contain the "v" for the tag so it shows up in "${pname}-${version}" or is it allright this way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No that should stay as it is.
The two major advantages of having pname
and version
are
- we can use
fetchPypi
which expectspname
andversion
(without a "v" prefix most of the time) - easier overriding because we do not need to override
name
norpname
This also uses an older requests version because linkchecker breaks with requests > 2.14.2.
8adb862
to
93752a8
Compare
@GrahamcOfBorg build linkchecker |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
Thanks a lot! |
Thank you! |
This also uses an older requests version because
linkchecker breaks with requests > 2.14.2.
Motivation for this change
Make linkchecker work
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)