about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/citeproc-py/default.nix
blob: d46a6bdb70d6739a8ec008b849409001f83e0b5c (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, nose
, git
, lxml
, rnc2rng
}:

buildPythonPackage rec {
  pname = "citeproc-py";
  version = "0.6.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "d9e3a224f936fe2e5033b5d9ffdacab769cedb61d96c4e0cf2f0b488f1d24b4e";
  };

  buildInputs = [ rnc2rng ];

  propagatedBuildInputs = [ lxml ];

  nativeCheckInputs = [ nose git ];
  checkPhase = "nosetests tests";
  doCheck = false;  # seems to want a Git repository, but fetchgit with leaveDotGit also fails
  pythonImportsCheck = [ "citeproc" ];

  meta = with lib; {
    homepage = "https://github.com/brechtm/citeproc-py";
    description = "Citation Style Language (CSL) parser for Python";
    license = licenses.bsd2;
    maintainers = with maintainers; [ bcdarwin ];
  };
}