nixpkgs/pkgs/by-name/ca/canto-daemon/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

36 lines
1.1 KiB
Nix

{ lib, fetchFromGitHub, python3Packages, }:
python3Packages.buildPythonApplication rec {
version = "0.9.8";
pname = "canto-daemon";
src = fetchFromGitHub {
owner = "themoken";
repo = "canto-next";
rev = "v${version}";
sha256 = "0fmsdn28z09bvivdkqcla5bnalky7k744iir25z70bv4pz1jcvnk";
};
propagatedBuildInputs = with python3Packages; [ feedparser ];
doCheck = false;
pythonImportsCheck = [ "canto_next" ];
meta = with lib; {
description = "Daemon for the canto Atom/RSS feed reader";
longDescription = ''
Canto is an Atom/RSS feed reader for the console that is meant to be
quick, concise, and colorful. It's meant to allow you to crank through
feeds like you've never cranked before by providing a minimal, yet
information packed interface. No navigating menus. No dense blocks of
unreadable white text. An interface with almost infinite customization
and extensibility using the excellent Python programming language.
'';
homepage = "https://codezen.org/canto-ng/";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers;[ devhell ];
};
}