nixpkgs/pkgs/development/python-modules/readme/default.nix
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

40 lines
743 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, readme_renderer
}:
buildPythonPackage rec {
pname = "readme";
version = "0.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "32fbe1538a437da160fa4e4477270bfdcd8876e2e364d0d12898302644496231";
};
nativeCheckInputs = [
pytest
];
propagatedBuildInputs = [
readme_renderer
];
checkPhase = ''
pytest
'';
# tests are not included with pypi release
# package is not readme_renderer
doCheck = false;
meta = with lib; {
description = "Readme is a library for rendering readme descriptions for Warehouse";
homepage = "https://github.com/pypa/readme";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}