python3Packages.hatch-min-requirements: cleanup, fix

This commit is contained in:
Gaetan Lepage 2026-03-07 00:01:02 +00:00
parent 6fe1428ce7
commit bc45941758

View file

@ -1,12 +1,17 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
# build-system
hatch-vcs, hatch-vcs,
hatchling, hatchling,
lib,
# dependencies
tomlkit,
}: }:
buildPythonPackage rec { buildPythonPackage (finalAttrs: {
pname = "hatch-min-requirements"; pname = "hatch-min-requirements";
version = "0.2.0"; version = "0.2.0";
pyproject = true; pyproject = true;
@ -14,7 +19,7 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tlambert03"; owner = "tlambert03";
repo = "hatch-min-requirements"; repo = "hatch-min-requirements";
tag = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-QKO5fVvjSqwY+48Fc8sAiZazrxZ4eBYxzVElHr2lcEA="; hash = "sha256-QKO5fVvjSqwY+48Fc8sAiZazrxZ4eBYxzVElHr2lcEA=";
}; };
@ -23,6 +28,10 @@ buildPythonPackage rec {
hatch-vcs hatch-vcs
]; ];
dependencies = [
tomlkit
];
# As of v0.1.0 all tests attempt to use the network # As of v0.1.0 all tests attempt to use the network
doCheck = false; doCheck = false;
@ -31,9 +40,10 @@ buildPythonPackage rec {
meta = { meta = {
description = "Hatchling plugin to create optional-dependencies pinned to minimum versions"; description = "Hatchling plugin to create optional-dependencies pinned to minimum versions";
homepage = "https://github.com/tlambert03/hatch-min-requirements"; homepage = "https://github.com/tlambert03/hatch-min-requirements";
changelog = "https://github.com/tlambert03/hatch-min-requirements/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsd3; license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ maintainers = with lib.maintainers; [
samuela samuela
]; ];
}; };
} })