mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
571c71e6f7
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.
34 lines
838 B
Nix
34 lines
838 B
Nix
{ lib, fetchFromGitLab, python3Packages }:
|
|
|
|
with python3Packages;
|
|
buildPythonApplication rec {
|
|
pname = "tuir";
|
|
version = "1.31.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "Chocimier";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-VYBtD3Ex6+iIRNvX6jF0b0iPvno41/58xCRydiyssvk=";
|
|
};
|
|
|
|
# Tests try to access network
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
nativeCheckInputs = [ coverage coveralls docopt mock pylint pytest vcrpy ];
|
|
|
|
propagatedBuildInputs = [ beautifulsoup4 decorator kitchen mailcap-fix requests six ];
|
|
|
|
meta = with lib; {
|
|
description = "Browse Reddit from your Terminal (fork of rtv)";
|
|
mainProgram = "tuir";
|
|
homepage = "https://gitlab.com/Chocimier/tuir";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Br1ght0ne matthiasbeyer brokenpip3 ];
|
|
};
|
|
}
|