diff --git a/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix b/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix new file mode 100644 index 000000000000..0092f4b657a4 --- /dev/null +++ b/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix @@ -0,0 +1,52 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +, build +, hatchling +}: + +buildPythonPackage rec { + pname = "hatch-fancy-pypi-readme"; + version = "22.3.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "hatch_fancy_pypi_readme"; + inherit version; + hash = "sha256-fUZR+PB4JZMckoc8tRE3IUqTi623p1m4XB2Vv3T4bvo="; + }; + + nativeBuildInputs = [ + hatchling + ]; + + propagatedBuildInputs = [ + hatchling + ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8e01b0f15281..ec711739e657 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4100,6 +4100,8 @@ in { hatchling = callPackage ../development/python-modules/hatchling { }; + hatch-fancy-pypi-readme = callPackage ../development/python-modules/hatch-fancy-pypi-readme { }; + hatch-vcs = callPackage ../development/python-modules/hatch-vcs { }; haversine = callPackage ../development/python-modules/haversine { };