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.
This commit is contained in:
parent
acfcd44a84
commit
ec46eaadbf
@ -1,4 +1,4 @@
|
||||
{ lib, fetchPypi, buildPythonApplication, pythonOlder
|
||||
{ lib, fetchPypi, buildPythonPackage, pythonOlder
|
||||
, aspy-yaml
|
||||
, cached-property
|
||||
, cfgv
|
||||
@ -13,7 +13,7 @@
|
||||
, virtualenv
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
buildPythonPackage rec {
|
||||
pname = "pre-commit";
|
||||
version = "1.21.0";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user