mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-28 12:06:38 +03:00
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 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue