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