blob: e735931dc34fc71fb214e5a7aaebc4f3e319455a (
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
51
52
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
pytest-cov-stub,
vcrpy,
citeproc-py,
looseversion,
requests,
}:
buildPythonPackage rec {
pname = "duecredit";
version = "0.10.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-/nOiDk+7LZcroB7fN97BsLoeZG7+XvTMrwxnJMoofUI=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
citeproc-py
looseversion
requests
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
vcrpy
];
disabledTests = [ "test_import_doi" ]; # tries to access network
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "duecredit" ];
meta = {
homepage = "https://github.com/duecredit/duecredit";
description = "Simple framework to embed references in code";
mainProgram = "duecredit";
changelog = "https://github.com/duecredit/duecredit/releases/tag/${version}";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.bcdarwin ];
};
}
|