Files
nixpkgs/pkgs/development/python-modules/duecredit/default.nix
T
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

43 lines
879 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, contextlib2
, pytest
, pytestCheckHook
, vcrpy
, citeproc-py
, requests
, setuptools
, six
}:
buildPythonPackage rec {
pname = "duecredit";
version = "0.9.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "f6192ce9315b35f6a67174761291e61d0831e496e8ff4acbc061731e7604faf8";
};
# bin/duecredit requires setuptools at runtime
propagatedBuildInputs = [ citeproc-py requests setuptools six ];
nativeCheckInputs = [ contextlib2 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 ];
};
}