diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2023-11-17 11:59:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 11:59:10 +0100 |
commit | 2542afeb0d81db4d1e5bc8df8354cbdcc29c2f53 (patch) | |
tree | fc772f645bae06ec9b4494eff87a5233b5e66ef1 /pkgs | |
parent | e4ce4800b9f70a5b87d06291ce9ae28c91a9dcb5 (diff) | |
parent | 85f67350b1741e95ca37ec31fa6077373b615971 (diff) | |
download | nixlib-2542afeb0d81db4d1e5bc8df8354cbdcc29c2f53.tar nixlib-2542afeb0d81db4d1e5bc8df8354cbdcc29c2f53.tar.gz nixlib-2542afeb0d81db4d1e5bc8df8354cbdcc29c2f53.tar.bz2 nixlib-2542afeb0d81db4d1e5bc8df8354cbdcc29c2f53.tar.lz nixlib-2542afeb0d81db4d1e5bc8df8354cbdcc29c2f53.tar.xz nixlib-2542afeb0d81db4d1e5bc8df8354cbdcc29c2f53.tar.zst nixlib-2542afeb0d81db4d1e5bc8df8354cbdcc29c2f53.zip |
Merge pull request #267397 from fabaff/towncrier-fix
python311Packages.towncrier: 23.6.0 -> 23.11.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/towncrier/default.nix | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/towncrier/default.nix b/pkgs/development/python-modules/towncrier/default.nix index 03b916883438..e90648ec0810 100644 --- a/pkgs/development/python-modules/towncrier/default.nix +++ b/pkgs/development/python-modules/towncrier/default.nix @@ -1,38 +1,48 @@ { lib , buildPythonPackage -, fetchPypi -, pythonOlder , click -, click-default-group +, fetchPypi +, git # shells out to git +, hatchling +, importlib-resources , incremental , jinja2 , mock , pytestCheckHook -, toml +, pythonOlder +, tomli , twisted -, setuptools -, git # shells out to git }: buildPythonPackage rec { pname = "towncrier"; - version = "23.6.0"; - format = "setuptools"; + version = "23.11.0"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-/Cm9WrRyfI2s++Y29/tdxTuZgFti2hyWshSDYVn/cME="; + hash = "sha256-E5N8JH4/iuIKxE2JXPX5amCtRs/cwWcXWVMNeDfZ7l0="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "hatchling ~= 1.17.1" "hatchling" + ''; + + nativeBuildInputs = [ + hatchling + ]; + propagatedBuildInputs = [ click - click-default-group incremental jinja2 - toml - setuptools + ] ++ lib.optionals (pythonOlder "3.10") [ + importlib-resources + ] ++ lib.optionals (pythonOlder "3.11") [ + tomli ]; preCheck = '' |