Skip to content

Commit 260fc6a

Browse files
committed
python3Packages.hatch-min-requirements: cleanup, fix
1 parent 111b576 commit 260fc6a

File tree

1 file changed

+14
-4
lines changed
  • pkgs/development/python-modules/hatch-min-requirements

1 file changed

+14
-4
lines changed
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
{
2+
lib,
23
buildPythonPackage,
34
fetchFromGitHub,
5+
6+
# build-system
47
hatch-vcs,
58
hatchling,
6-
lib,
9+
10+
# dependencies
11+
tomlkit,
712
}:
813

9-
buildPythonPackage rec {
14+
buildPythonPackage (finalAttrs: {
1015
pname = "hatch-min-requirements";
1116
version = "0.2.0";
1217
pyproject = true;
1318

1419
src = fetchFromGitHub {
1520
owner = "tlambert03";
1621
repo = "hatch-min-requirements";
17-
tag = "v${version}";
22+
tag = "v${finalAttrs.version}";
1823
hash = "sha256-QKO5fVvjSqwY+48Fc8sAiZazrxZ4eBYxzVElHr2lcEA=";
1924
};
2025

@@ -23,6 +28,10 @@ buildPythonPackage rec {
2328
hatch-vcs
2429
];
2530

31+
dependencies = [
32+
tomlkit
33+
];
34+
2635
# As of v0.1.0 all tests attempt to use the network
2736
doCheck = false;
2837

@@ -31,9 +40,10 @@ buildPythonPackage rec {
3140
meta = {
3241
description = "Hatchling plugin to create optional-dependencies pinned to minimum versions";
3342
homepage = "https://github.com/tlambert03/hatch-min-requirements";
43+
changelog = "https://github.com/tlambert03/hatch-min-requirements/releases/tag/${finalAttrs.src.tag}";
3444
license = lib.licenses.bsd3;
3545
maintainers = with lib.maintainers; [
3646
samuela
3747
];
3848
};
39-
}
49+
})

0 commit comments

Comments
 (0)