python3Packages.iniconfig: 1.1.1 -> 2.0.0
https://github.com/pytest-dev/iniconfig/blob/v2.0.0/CHANGELOG
This commit is contained in:
parent
f54c88e777
commit
02c6a5257f
2 changed files with 68 additions and 5 deletions
|
@ -1,22 +1,43 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, setuptools-scm }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, substituteAll
|
||||||
|
, fetchPypi
|
||||||
|
, hatch-vcs
|
||||||
|
, hatchling
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "iniconfig";
|
pname = "iniconfig";
|
||||||
version = "1.1.1";
|
version = "2.0.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32";
|
hash = "sha256-LZHhNb9y0xpBCxfBbaYQqCy1X2sEd9GpAhNLJKRVuLM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
nativeBuildInputs = [
|
||||||
|
hatchling
|
||||||
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Cannot use hatch-vcs, due to an inifinite recursion
|
||||||
|
(substituteAll {
|
||||||
|
src = ./version.patch;
|
||||||
|
inherit version;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"iniconfig"
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false; # avoid circular import with pytest
|
doCheck = false; # avoid circular import with pytest
|
||||||
pythonImportsCheck = [ "iniconfig" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "brain-dead simple parsing of ini files";
|
description = "brain-dead simple parsing of ini files";
|
||||||
homepage = "https://github.com/pytest-dev/iniconfig";
|
homepage = "https://github.com/pytest-dev/iniconfig";
|
||||||
|
changelog = "https://github.com/pytest-dev/iniconfig/blob/v${version}/CHANGELOG";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ jonringer ];
|
maintainers = with maintainers; [ jonringer ];
|
||||||
};
|
};
|
||||||
|
|
42
pkgs/development/python-modules/iniconfig/version.patch
Normal file
42
pkgs/development/python-modules/iniconfig/version.patch
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
diff --git a/pyproject.toml b/pyproject.toml
|
||||||
|
index 6eee6ef..263999f 100644
|
||||||
|
--- a/pyproject.toml
|
||||||
|
+++ b/pyproject.toml
|
||||||
|
@@ -1,12 +1,12 @@
|
||||||
|
[build-system]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
requires = [
|
||||||
|
- "hatch-vcs",
|
||||||
|
"hatchling",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "iniconfig"
|
||||||
|
+version = "@version@"
|
||||||
|
description = "brain-dead simple config-ini parsing"
|
||||||
|
readme = "README.rst"
|
||||||
|
license = "MIT"
|
||||||
|
@@ -15,9 +15,6 @@ authors = [
|
||||||
|
{ name = "Holger Krekel", email = "holger.krekel@gmail.com" },
|
||||||
|
]
|
||||||
|
requires-python = ">=3.7"
|
||||||
|
-dynamic = [
|
||||||
|
- "version",
|
||||||
|
-]
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
@@ -38,13 +35,6 @@ classifiers = [
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://github.com/pytest-dev/iniconfig"
|
||||||
|
|
||||||
|
-
|
||||||
|
-[tool.hatch.version]
|
||||||
|
-source = "vcs"
|
||||||
|
-
|
||||||
|
-[tool.hatch.build.hooks.vcs]
|
||||||
|
-version-file = "src/iniconfig/_version.py"
|
||||||
|
-
|
||||||
|
[tool.hatch.build.targets.sdist]
|
||||||
|
include = [
|
||||||
|
"/src",
|
Loading…
Reference in a new issue