Skip to content

Commit ec46eaa

Browse files
eonpataponFRidh
authored andcommitted
pre-commit: use buildPythonPackage
Allows to build a python env with pre_commit module: python3.withPackages(p: [p.pre-commit]) pre-commit is already converted to an application in `git-and-tools/default.nix`: pre-commit = pkgs.python3Packages.toPythonApplication pkgs.python3Packages.pre-commit; So that it can still be installed as a standalone application.
1 parent acfcd44 commit ec46eaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/development/python-modules/pre-commit/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, fetchPypi, buildPythonApplication, pythonOlder
1+
{ lib, fetchPypi, buildPythonPackage, pythonOlder
22
, aspy-yaml
33
, cached-property
44
, cfgv
@@ -13,7 +13,7 @@
1313
, virtualenv
1414
}:
1515

16-
buildPythonApplication rec {
16+
buildPythonPackage rec {
1717
pname = "pre-commit";
1818
version = "1.21.0";
1919

0 commit comments

Comments
 (0)