summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pybtex/default.nix
blob: f2eb9539e1d9adbbf397629530e4dbc86483dfdd (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
{
  lib,
  buildPythonPackage,
  fetchPypi,

  # build-system
  setuptools,

  # dependencies
  latexcodec,
  pyyaml,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pybtex";
  version = "0.25.1";
  pyproject = true;

  src = fetchPypi {
    inherit version pname;
    sha256 = "sha256-nq+QJnx+g+Ilr4n+plw3Cvv2X0WCINOUap4wSeHspJE=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    latexcodec
    pyyaml
  ];

  pythonImportsCheck = [ "pybtex" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    homepage = "https://pybtex.org/";
    changelog = "https://bitbucket.org/pybtex-devs/pybtex/src/master/CHANGES";
    description = "BibTeX-compatible bibliography processor written in Python";
    license = lib.licenses.mit;
  };
}