Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, flit-core 5, pytestCheckHook 6, pythonOlder 7, setuptools 8, testpath 9, tomli 10}: 11 12buildPythonPackage rec { 13 pname = "pyproject-hooks"; 14 version = "1.0.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi rec { 20 pname = "pyproject_hooks"; 21 inherit version; 22 hash = "sha256-8nGymLl/WVXVP7ErcsH7GUjCLBprcLMVxUztrKAmTvU="; 23 }; 24 25 nativeBuildInputs = [ 26 flit-core 27 ]; 28 29 propagatedBuildInputs = [ 30 ] ++ lib.optionals (pythonOlder "3.11") [ 31 tomli 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 setuptools 37 testpath 38 ]; 39 40 disabledTests = [ 41 # fail to import setuptools 42 "test_setup_py" 43 "test_issue_104" 44 ]; 45 46 pythonImportsCheck = [ 47 "pyproject_hooks" 48 ]; 49 50 meta = with lib; { 51 description = "Low-level library for calling build-backends in `pyproject.toml`-based project "; 52 homepage = "https://github.com/pypa/pyproject-hooks"; 53 changelog = "https://github.com/pypa/pyproject-hooks/blob/v${version}/docs/changelog.rst"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ hexa ]; 56 }; 57}