about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/duecredit/default.nix
blob: 28aaf8ee47c907d837355fdf958d71aa12291981 (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
36
37
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, contextlib2
, pytest
, pytestCheckHook
, vcrpy
, citeproc-py
, requests
, setuptools
, six
}:

buildPythonPackage rec {
  pname = "duecredit";
  version = "0.8.0";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1yxd8579pakrfhq0hls0iy37nxllsm8y33na220g08znibrp7ix0";
  };

  # bin/duecredit requires setuptools at runtime
  propagatedBuildInputs = [ citeproc-py requests setuptools six ];

  checkInputs = [ contextlib2 pytest pytestCheckHook vcrpy ];
  disabledTests = [ "test_io" ];

  meta = with lib; {
    homepage = "https://github.com/duecredit/duecredit";
    description = "Simple framework to embed references in code";
    license = licenses.bsd2;
    maintainers = with maintainers; [ bcdarwin ];
  };
}