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:
Jean-Philippe Braun 2020-05-20 12:22:47 +02:00 committed by Frederik Rietdijk
parent acfcd44a84
commit ec46eaadbf

View File

@ -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";