depot/third_party/nixpkgs/pkgs/development/python-modules/duecredit/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

39 lines
765 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytestCheckHook
, vcrpy
, citeproc-py
, requests
, six
}:
buildPythonPackage rec {
pname = "duecredit";
version = "0.9.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-Dg/Yfp5GzmyUMI6feAwgP+g22JYoQE+L9a+Wp0V77Rw=";
};
propagatedBuildInputs = [ citeproc-py requests six ];
nativeCheckInputs = [ 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 ];
};
}