depot/third_party/nixpkgs/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

58 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, build
, hatchling
, tomli
, typing-extensions
}:
buildPythonPackage rec {
pname = "hatch-fancy-pypi-readme";
version = "22.8.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "hatch_fancy_pypi_readme";
inherit version;
hash = "sha256-2pEoLKCWAcGK3tjjeNr4tXjHAhSGbwlxFW7pu5zmwmo=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
hatchling
] ++ lib.optionals (pythonOlder "3.11") [
tomli
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
];
checkInputs = [
build
pytestCheckHook
];
# Requires network connection
disabledTests = [
"test_build" # Requires internet
"test_invalid_config"
];
pythonImportsCheck = [
"hatch_fancy_pypi_readme"
];
meta = with lib; {
description = "Fancy PyPI READMEs with Hatch";
homepage = "https://github.com/hynek/hatch-fancy-pypi-readme";
license = licenses.mit;
maintainers = with maintainers; [ tjni ];
};
}