2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, substituteAll
|
|
|
|
, fetchPypi
|
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
|
|
|
}:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "iniconfig";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "2.0.0";
|
|
|
|
format = "pyproject";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-LZHhNb9y0xpBCxfBbaYQqCy1X2sEd9GpAhNLJKRVuLM=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Cannot use hatch-vcs, due to an inifinite recursion
|
|
|
|
(substituteAll {
|
|
|
|
src = ./version.patch;
|
|
|
|
inherit version;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"iniconfig"
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
doCheck = false; # avoid circular import with pytest
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "brain-dead simple parsing of ini files";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/pytest-dev/iniconfig";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|