2020-06-09 21:09:21 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, contextlib2
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, vcrpy
|
|
|
|
, citeproc-py
|
|
|
|
, requests
|
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "duecredit";
|
2021-01-31 05:07:52 +00:00
|
|
|
version = "0.8.1";
|
2020-06-09 21:09:21 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-31 05:07:52 +00:00
|
|
|
sha256 = "43b3f01ab5fb2bf2ecc27d3fcf92b873c6b288f44becef3e2e87c96cb89d7b01";
|
2020-06-09 21:09:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|