summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ufolint/default.nix
blob: 5993296e9e375f31624b251ae5bf2f3f5060c5ca (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  commandlines,
  fonttools,
  fs,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "ufolint";
  version = "1.2.0";
  format = "setuptools";

  # PyPI source tarballs omit tests, fetch from Github instead
  src = fetchFromGitHub {
    owner = "source-foundry";
    repo = "ufolint";
    rev = "v${version}";
    hash = "sha256-sv8WbnDd2LFHkwNsB9FO04OlLhemdzwjq0tC9+Fd6/M=";
  };

  propagatedBuildInputs = [
    commandlines
    fs
    fonttools
  ];

  nativeBuildInputs = [ pytestCheckHook ];

  meta = {
    description = "Linter for Unified Font Object (UFO) source code";
    mainProgram = "ufolint";
    homepage = "https://github.com/source-foundry/ufolint";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ danc86 ];
  };
}