nixpkgs/pkgs/development/python-modules/duecredit/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

40 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 ];
};
}