Skip to content

Commit 7a0ab85

Browse files
fabaffthunze
authored andcommitted
python313Packages.devtools: refactor
1 parent 0d6c1a2 commit 7a0ab85

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

pkgs/development/python-modules/devtools/default.nix

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@
88
pygments,
99
pytest-mock,
1010
pytestCheckHook,
11-
pythonOlder,
1211
}:
1312

1413
buildPythonPackage rec {
1514
pname = "devtools";
1615
version = "0.12.2";
17-
format = "pyproject";
18-
19-
disabled = pythonOlder "3.7";
16+
pyproject = true;
2017

2118
src = fetchFromGitHub {
2219
owner = "samuelcolvin";
@@ -35,9 +32,9 @@ buildPythonPackage rec {
3532
--replace-fail 'asttokens>=2.0.0,<3.0.0' 'asttokens>=2.0.0' \
3633
'';
3734

38-
nativeBuildInputs = [ hatchling ];
35+
build-system = [ hatchling ];
3936

40-
propagatedBuildInputs = [
37+
dependencies = [
4138
asttokens
4239
executing
4340
pygments
@@ -68,7 +65,7 @@ buildPythonPackage rec {
6865
meta = with lib; {
6966
description = "Python's missing debug print command and other development tools";
7067
homepage = "https://python-devtools.helpmanual.io/";
71-
changelog = "https://github.com/samuelcolvin/python-devtools/releases/tag/v${version}";
68+
changelog = "https://github.com/samuelcolvin/python-devtools/releases/tag/${src.tag}";
7269
license = licenses.mit;
7370
maintainers = with maintainers; [ jdahm ];
7471
};

0 commit comments

Comments
 (0)