nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "cansina";
9 version = "0.9";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "deibit";
14 repo = "cansina";
15 tag = version;
16 hash = "sha256-vDlYJSRBVFtEdE/1bN8PniFYkpggIKMcEakphHmaTos=";
17 };
18
19 nativeBuildInputs = with python3.pkgs; [
20 setuptools
21 ];
22
23 propagatedBuildInputs = with python3.pkgs; [
24 asciitree
25 requests
26 ];
27
28 pythonImportsCheck = [
29 "cansina"
30 ];
31
32 meta = {
33 description = "Web Content Discovery Tool";
34 homepage = "https://github.com/deibit/cansina";
35 changelog = "https://github.com/deibit/cansina/blob/${version}/CHANGELOG.md";
36 license = lib.licenses.gpl3Only;
37 maintainers = with lib.maintainers; [ fab ];
38 mainProgram = "cansina";
39 };
40}