Merge pull request #125764 from siraben/twtxt-reinit

authored by

Sandro and committed by
GitHub
12e7af1c 4a2cbcfb

+19 -11
+18 -10
pkgs/applications/networking/twtxt/default.nix
··· 1 - { lib, fetchFromGitHub, buildGoModule }: 1 + { lib, fetchFromGitHub, buildPythonApplication, aiohttp, python-dateutil, humanize, click, pytestCheckHook, tox }: 2 2 3 - buildGoModule rec { 3 + buildPythonApplication rec { 4 4 pname = "twtxt"; 5 - version = "0.1.0"; 5 + version = "1.2.3"; 6 6 7 7 src = fetchFromGitHub { 8 - owner = "jointwt"; 8 + owner = "buckket"; 9 9 repo = pname; 10 - rev = version; 11 - sha256 = "15jhfnhpk34nmad04f7xz1w041dba8cn17hq46p9n5sarjgkjiiw"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-AdM95G2Vz3UbVPI7fs8/D78BMxscbTGrCpIyyHzSmho="; 12 12 }; 13 13 14 - vendorSha256 = "1lnf8wd2rv9d292rp8jndfdg0rjs6gfw0yg49l9spw4yzifnd7f7"; 14 + # Relax some dependencies 15 + postPatch = '' 16 + substituteInPlace setup.py \ 17 + --replace 'aiohttp>=2.2.5,<3' 'aiohttp' \ 18 + --replace 'click>=6.7,<7' 'click' \ 19 + --replace 'humanize>=0.5.1,<1' 'humanize' 20 + ''; 15 21 16 - subPackages = [ "cmd/twt" "cmd/twtd" ]; 22 + propagatedBuildInputs = [ aiohttp python-dateutil humanize click ]; 23 + 24 + checkInputs = [ pytestCheckHook tox ]; 17 25 18 26 meta = with lib; { 19 - description = "Self-hosted, Twitter-like decentralised microblogging platform"; 20 - homepage = "https://github.com/jointwt/twtxt"; 27 + description = "Decentralised, minimalist microblogging service for hackers"; 28 + homepage = "https://github.com/buckket/twtxt"; 21 29 license = licenses.mit; 22 30 maintainers = with maintainers; [ siraben ]; 23 31 };
+1 -1
pkgs/top-level/all-packages.nix
··· 9346 9346 9347 9347 twitterBootstrap = callPackage ../development/web/twitter-bootstrap {}; 9348 9348 9349 - twtxt = callPackage ../applications/networking/twtxt { }; 9349 + twtxt = python3Packages.callPackage ../applications/networking/twtxt { }; 9350 9350 9351 9351 txr = callPackage ../tools/misc/txr { stdenv = clangStdenv; }; 9352 9352