nixos/java: No bashisms in `environment.shellInit` script (#294121)
[NixPkgs.git] / pkgs / development / python-modules / hatch-fancy-pypi-readme / default.nix
blob2c96dd85be1ece5059e08aecb973c78810b57afe
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pytestCheckHook,
6   pythonOlder,
7   build,
8   hatchling,
9   tomli,
10   typing-extensions,
13 buildPythonPackage rec {
14   pname = "hatch-fancy-pypi-readme";
15   version = "24.1.0";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     pname = "hatch_fancy_pypi_readme";
22     inherit version;
23     hash = "sha256-RN0jnxp3m53PjryUAaYR/X9+PhRXjc8iwmXfr3wVFLg=";
24   };
26   nativeBuildInputs = [ hatchling ];
28   propagatedBuildInputs =
29     [ hatchling ]
30     ++ lib.optionals (pythonOlder "3.11") [ tomli ]
31     ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
33   nativeCheckInputs = [
34     build
35     pytestCheckHook
36   ];
38   # Requires network connection
39   disabledTests = [
40     "test_build" # Requires internet
41     "test_invalid_config"
42   ];
44   pythonImportsCheck = [ "hatch_fancy_pypi_readme" ];
46   meta = with lib; {
47     description = "Fancy PyPI READMEs with Hatch";
48     mainProgram = "hatch-fancy-pypi-readme";
49     homepage = "https://github.com/hynek/hatch-fancy-pypi-readme";
50     license = licenses.mit;
51     maintainers = with maintainers; [ tjni ];
52   };