summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pycrashreport/default.nix
blob: 05f5cf24022fdbf5aa0349c393d3c40ae5113736 (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
42
43
44
45
46
47
48
49
50
{
  buildPythonPackage,
  cached-property,
  click,
  fetchFromGitHub,
  la-panic,
  lib,
  pytestCheckHook,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "pycrashreport";
  version = "1.2.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "doronz88";
    repo = "pycrashreport";
    tag = "v${version}";
    hash = "sha256-QhHjQO/swoFYKlHaqpaU1qIGwHIK5Eq3ZHrFJEHZbWs=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    cached-property
    click
    la-panic
  ];

  pythonImportsCheck = [ "pycrashreport" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/doronz88/pycrashreport/releases/tag/${src.tag}";
    description = "Python3 parser for Apple's crash reports";
    homepage = "https://github.com/doronz88/pycrashreport";
    license = lib.licenses.gpl3Plus;
    mainProgram = "pycrashreport";
    maintainers = [ lib.maintainers.dotlambda ];
  };
}