blob: b9c9e65a4fe6d22c263ae5b6b2d94d92a0084939 (
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
|
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, contextlib2
, pytest
, pytestCheckHook
, vcrpy
, citeproc-py
, requests
, setuptools
, six
}:
buildPythonPackage rec {
pname = "duecredit";
version = "0.9.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "f6192ce9315b35f6a67174761291e61d0831e496e8ff4acbc061731e7604faf8";
};
# bin/duecredit requires setuptools at runtime
propagatedBuildInputs = [ citeproc-py requests setuptools six ];
nativeCheckInputs = [ contextlib2 pytest pytestCheckHook vcrpy ];
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "duecredit" ];
meta = with lib; {
homepage = "https://github.com/duecredit/duecredit";
description = "Simple framework to embed references in code";
license = licenses.bsd2;
maintainers = with maintainers; [ bcdarwin ];
};
}
|