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

authored by

Matthias Beyer and committed by
GitHub
7f45f832 f524d828

+7 -35
+7 -35
pkgs/by-name/ha/haxor-news/package.nix
··· 2 lib, 3 fetchFromGitHub, 4 fetchPypi, 5 - python3, 6 }: 7 8 - let 9 - py = python3.override { 10 - self = py; 11 - packageOverrides = self: super: { 12 - # not compatible with prompt_toolkit >=2.0 13 - prompt-toolkit = super.prompt-toolkit.overridePythonAttrs (oldAttrs: rec { 14 - name = "${oldAttrs.pname}-${version}"; 15 - version = "1.0.18"; 16 - src = oldAttrs.src.override { 17 - inherit version; 18 - hash = "sha256-3U/KAsgGlJetkxotCZFMaw0bUBUc6Ha8Fb3kx0cJASY="; 19 - }; 20 - }); 21 - # Use click 7 22 - click = super.click.overridePythonAttrs (old: rec { 23 - version = "7.1.2"; 24 - src = fetchPypi { 25 - pname = "click"; 26 - inherit version; 27 - hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo="; 28 - }; 29 - disabledTests = [ "test_bytes_args" ]; 30 - }); 31 - }; 32 - }; 33 - in 34 - with py.pkgs; 35 - 36 - buildPythonApplication rec { 37 pname = "haxor-news"; 38 - version = "unstable-2020-10-20"; 39 format = "setuptools"; 40 41 # haven't done a stable release in 3+ years, but actively developed 42 src = fetchFromGitHub { 43 owner = "donnemartin"; 44 repo = "haxor-news"; 45 - rev = "811a5804c09406465b2b02eab638c08bf5c4fa7f"; 46 - hash = "sha256-5v61b49ttwqPOvtoykJBBzwVSi7S8ARlakccMr12bbw="; 47 }; 48 49 - propagatedBuildInputs = [ 50 click 51 colorama 52 requests ··· 58 # will fail without pre-seeded config files 59 doCheck = false; 60 61 - nativeCheckInputs = [ 62 unittestCheckHook 63 mock 64 ];
··· 2 lib, 3 fetchFromGitHub, 4 fetchPypi, 5 + python3Packages, 6 }: 7 8 + python3Packages.buildPythonApplication rec { 9 pname = "haxor-news"; 10 + version = "unstable-2022-04-22"; 11 format = "setuptools"; 12 13 # haven't done a stable release in 3+ years, but actively developed 14 src = fetchFromGitHub { 15 owner = "donnemartin"; 16 repo = "haxor-news"; 17 + rev = "8294e4498858f036a344b06e82f08b834c2a8270"; 18 + hash = "sha256-0eVk5zj7F3QDFvV0Kv9aeV1oeKxr/Kza6M3pK6hyYuY="; 19 }; 20 21 + propagatedBuildInputs = with python3Packages; [ 22 click 23 colorama 24 requests ··· 30 # will fail without pre-seeded config files 31 doCheck = false; 32 33 + nativeCheckInputs = with python3Packages; [ 34 unittestCheckHook 35 mock 36 ];