haxor-news: unstable-2020-10-20 -> unstable-2022-04-22 (#427340)

This commit is contained in:
Matthias Beyer
2025-07-22 10:56:12 +02:00
committed by GitHub
+7 -35
View File
@@ -2,51 +2,23 @@
lib,
fetchFromGitHub,
fetchPypi,
python3,
python3Packages,
}:
let
py = python3.override {
self = py;
packageOverrides = self: super: {
# not compatible with prompt_toolkit >=2.0
prompt-toolkit = super.prompt-toolkit.overridePythonAttrs (oldAttrs: rec {
name = "${oldAttrs.pname}-${version}";
version = "1.0.18";
src = oldAttrs.src.override {
inherit version;
hash = "sha256-3U/KAsgGlJetkxotCZFMaw0bUBUc6Ha8Fb3kx0cJASY=";
};
});
# Use click 7
click = super.click.overridePythonAttrs (old: rec {
version = "7.1.2";
src = fetchPypi {
pname = "click";
inherit version;
hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
};
disabledTests = [ "test_bytes_args" ];
});
};
};
in
with py.pkgs;
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "haxor-news";
version = "unstable-2020-10-20";
version = "unstable-2022-04-22";
format = "setuptools";
# haven't done a stable release in 3+ years, but actively developed
src = fetchFromGitHub {
owner = "donnemartin";
repo = "haxor-news";
rev = "811a5804c09406465b2b02eab638c08bf5c4fa7f";
hash = "sha256-5v61b49ttwqPOvtoykJBBzwVSi7S8ARlakccMr12bbw=";
rev = "8294e4498858f036a344b06e82f08b834c2a8270";
hash = "sha256-0eVk5zj7F3QDFvV0Kv9aeV1oeKxr/Kza6M3pK6hyYuY=";
};
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
click
colorama
requests
@@ -58,7 +30,7 @@ buildPythonApplication rec {
# will fail without pre-seeded config files
doCheck = false;
nativeCheckInputs = [
nativeCheckInputs = with python3Packages; [
unittestCheckHook
mock
];