depot/third_party/nixpkgs/pkgs/development/python-modules/duecredit/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

44 lines
987 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, pytestCheckHook
, vcrpy
, citeproc-py
, requests
, six
}:
buildPythonPackage rec {
pname = "duecredit";
version = "0.9.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-Dg/Yfp5GzmyUMI6feAwgP+g22JYoQE+L9a+Wp0V77Rw=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ citeproc-py requests six ];
nativeCheckInputs = [ pytestCheckHook vcrpy ];
disabledTests = [ "test_import_doi" ]; # tries to access network
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "duecredit" ];
meta = with lib; {
homepage = "https://github.com/duecredit/duecredit";
description = "Simple framework to embed references in code";
changelog = "https://github.com/duecredit/duecredit/releases/tag/${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ bcdarwin ];
};
}