Skip to content

Commit c2bc8a7

Browse files
authored
cruft: 2.15.0 -> 2.16.0 (NixOS#373763)
2 parents 1643947 + 1f9a92d commit c2bc8a7

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

pkgs/by-name/cr/cruft/package.nix

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,38 @@
55
}:
66
python3Packages.buildPythonApplication rec {
77
pname = "cruft";
8-
version = "2.15.0";
8+
version = "2.16.0";
99
pyproject = true;
1010

1111
src = fetchFromGitHub {
1212
owner = "cruft";
1313
repo = "cruft";
14-
rev = version;
15-
hash = "sha256-qIVyNMoI3LsoOV/6XPa60Y1vTRvkezesF7wF9WVSLGk=";
14+
tag = version;
15+
hash = "sha256-hUucSfgDBlT5jVk/oF8JjbcYhjHgkprfGRwsSNfgjfg=";
1616
};
1717

18+
postPatch = ''
19+
substituteInPlace pyproject.toml \
20+
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
21+
'';
22+
1823
build-system = with python3Packages; [
19-
poetry-core
24+
hatchling
2025
];
2126

2227
nativeCheckInputs = with python3Packages; [
2328
pytest7CheckHook
2429
];
2530

26-
dependencies = with python3Packages; [
27-
click
28-
cookiecutter
29-
gitpython
30-
typer
31-
];
31+
dependencies =
32+
with python3Packages;
33+
[
34+
click
35+
cookiecutter
36+
gitpython
37+
typer
38+
]
39+
++ lib.optional (pythonOlder "3.11") python3Packages.toml;
3240

3341
pythonImportsCheck = "cruft";
3442

0 commit comments

Comments
 (0)