summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/faicons/default.nix
blob: 4f3e42ae7dd112a8b5d4321b35d9853aa7345d8b (plain)
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
40
41
{
  buildPythonPackage,
  fetchFromGitHub,
  htmltools,
  lib,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "faicons";
  version = "0.2.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "posit-dev";
    repo = "py-faicons";
    tag = "v${version}";
    hash = "sha256-okkZ8anirjcZcZeB3XjvNJpiYQEau+o6dmCGqFBD8XY=";
  };

  build-system = [ setuptools ];

  dependencies = [
    htmltools
  ];

  pythonImportsCheck = [ "faicons" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/posit-dev/py-faicons/blob/${src.tag}/CHANGELOG.md";
    description = "Interface to Font-Awesome for use in Shiny";
    homepage = "https://github.com/posit-dev/py-faicons";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}