about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ca/cansina/package.nix
blob: 11e8d9fad487e9e9a857fc745a57f9d3a0cd5ca9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "cansina";
  version = "0.9";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "deibit";
    repo = "cansina";
    rev = "refs/tags/${version}";
    hash = "sha256-vDlYJSRBVFtEdE/1bN8PniFYkpggIKMcEakphHmaTos=";
  };

  nativeBuildInputs = with python3.pkgs; [
    setuptools
  ];

  propagatedBuildInputs = with python3.pkgs; [
    asciitree
    requests
  ];

  pythonImportsCheck = [
    "cansina"
  ];

  meta = with lib; {
    description = "Web Content Discovery Tool";
    homepage = "https://github.com/deibit/cansina";
    changelog = "https://github.com/deibit/cansina/blob/${version}/CHANGELOG.md";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ fab ];
    mainProgram = "cansina";
  };
}