1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, pytest
6, pytestCheckHook
7, vcrpy
8, citeproc-py
9, requests
10, six
11}:
12
13buildPythonPackage rec {
14 pname = "duecredit";
15 version = "0.9.2";
16 disabled = isPy27;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-Dg/Yfp5GzmyUMI6feAwgP+g22JYoQE+L9a+Wp0V77Rw=";
21 };
22
23 propagatedBuildInputs = [ citeproc-py requests six ];
24
25 nativeCheckInputs = [ pytest pytestCheckHook vcrpy ];
26
27 preCheck = ''
28 export HOME=$(mktemp -d)
29 '';
30
31 pythonImportsCheck = [ "duecredit" ];
32
33 meta = with lib; {
34 homepage = "https://github.com/duecredit/duecredit";
35 description = "Simple framework to embed references in code";
36 license = licenses.bsd2;
37 maintainers = with maintainers; [ bcdarwin ];
38 };
39}