1 { lib, fetchFromGitHub, fetchPypi, python3 }:
5 py = python3.override {
6 packageOverrides = self: super: {
9 # not compatible with prompt_toolkit >=2.0
10 prompt-toolkit = super.prompt-toolkit.overridePythonAttrs (oldAttrs: rec {
11 name = "${oldAttrs.pname}-${version}";
13 src = oldAttrs.src.override {
15 hash = "sha256-3U/KAsgGlJetkxotCZFMaw0bUBUc6Ha8Fb3kx0cJASY=";
19 click = super.click.overridePythonAttrs (old: rec {
24 hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
26 disabledTests = [ "test_bytes_args" ];
33 buildPythonApplication rec {
35 version = "unstable-2020-10-20";
37 # haven't done a stable release in 3+ years, but actively developed
38 src = fetchFromGitHub {
39 owner = "donnemartin";
41 rev = "811a5804c09406465b2b02eab638c08bf5c4fa7f";
42 hash = "sha256-5v61b49ttwqPOvtoykJBBzwVSi7S8ARlakccMr12bbw=";
45 propagatedBuildInputs = [
54 # will fail without pre-seeded config files
57 nativeCheckInputs = [ unittestCheckHook mock ];
59 unittestFlagsArray = [ "-s" "tests" "-v" ];
62 homepage = "https://github.com/donnemartin/haxor-news";
63 description = "Browse Hacker News like a haxor";
64 license = licenses.asl20;
65 maintainers = with maintainers; [ matthiasbeyer ];