Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 build, 8 hatchling, 9 tomli, 10 typing-extensions, 11}: 12 13buildPythonPackage rec { 14 pname = "hatch-fancy-pypi-readme"; 15 version = "24.1.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 pname = "hatch_fancy_pypi_readme"; 22 inherit version; 23 hash = "sha256-RN0jnxp3m53PjryUAaYR/X9+PhRXjc8iwmXfr3wVFLg="; 24 }; 25 26 nativeBuildInputs = [ hatchling ]; 27 28 propagatedBuildInputs = 29 [ hatchling ] 30 ++ lib.optionals (pythonOlder "3.11") [ tomli ] 31 ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; 32 33 nativeCheckInputs = [ 34 build 35 pytestCheckHook 36 ]; 37 38 # Requires network connection 39 disabledTests = [ 40 "test_build" # Requires internet 41 "test_invalid_config" 42 ]; 43 44 pythonImportsCheck = [ "hatch_fancy_pypi_readme" ]; 45 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 }; 53}