5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
45 lines
936 B
Nix
45 lines
936 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, substituteAll
|
|
, fetchPypi
|
|
, hatch-vcs
|
|
, hatchling
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "iniconfig";
|
|
version = "2.0.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-LZHhNb9y0xpBCxfBbaYQqCy1X2sEd9GpAhNLJKRVuLM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
patches = [
|
|
# Cannot use hatch-vcs, due to an inifinite recursion
|
|
(substituteAll {
|
|
src = ./version.patch;
|
|
inherit version;
|
|
})
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"iniconfig"
|
|
];
|
|
|
|
# Requires pytest, which in turn requires this package - causes infinite
|
|
# recursion. See also: https://github.com/NixOS/nixpkgs/issues/63168
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "brain-dead simple parsing of ini files";
|
|
homepage = "https://github.com/pytest-dev/iniconfig";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|