Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6, build 7, hatchling 8, tomli 9, typing-extensions 10}: 11 12buildPythonPackage rec { 13 pname = "hatch-fancy-pypi-readme"; 14 version = "22.8.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 pname = "hatch_fancy_pypi_readme"; 21 inherit version; 22 hash = "sha256-2pEoLKCWAcGK3tjjeNr4tXjHAhSGbwlxFW7pu5zmwmo="; 23 }; 24 25 nativeBuildInputs = [ 26 hatchling 27 ]; 28 29 propagatedBuildInputs = [ 30 hatchling 31 ] ++ lib.optionals (pythonOlder "3.11") [ 32 tomli 33 ] ++ lib.optionals (pythonOlder "3.8") [ 34 typing-extensions 35 ]; 36 37 nativeCheckInputs = [ 38 build 39 pytestCheckHook 40 ]; 41 42 # Requires network connection 43 disabledTests = [ 44 "test_build" # Requires internet 45 "test_invalid_config" 46 ]; 47 48 pythonImportsCheck = [ 49 "hatch_fancy_pypi_readme" 50 ]; 51 52 meta = with lib; { 53 description = "Fancy PyPI READMEs with Hatch"; 54 homepage = "https://github.com/hynek/hatch-fancy-pypi-readme"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ tjni ]; 57 }; 58}