1{ lib 2, buildPythonPackage 3, substituteAll 4, fetchPypi 5, hatch-vcs 6, hatchling 7}: 8 9buildPythonPackage rec { 10 pname = "iniconfig"; 11 version = "2.0.0"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-LZHhNb9y0xpBCxfBbaYQqCy1X2sEd9GpAhNLJKRVuLM="; 17 }; 18 19 nativeBuildInputs = [ 20 hatchling 21 ]; 22 23 patches = [ 24 # Cannot use hatch-vcs, due to an inifinite recursion 25 (substituteAll { 26 src = ./version.patch; 27 inherit version; 28 }) 29 ]; 30 31 pythonImportsCheck = [ 32 "iniconfig" 33 ]; 34 35 # Requires pytest, which in turn requires this package - causes infinite 36 # recursion. See also: https://github.com/NixOS/nixpkgs/issues/63168 37 doCheck = false; 38 39 meta = with lib; { 40 description = "brain-dead simple parsing of ini files"; 41 homepage = "https://github.com/pytest-dev/iniconfig"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ jonringer ]; 44 }; 45}