mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-28 20:16:41 +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
|
, aspy-yaml
|
||||||
, cached-property
|
, cached-property
|
||||||
, cfgv
|
, cfgv
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
, virtualenv
|
, virtualenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonPackage rec {
|
||||||
pname = "pre-commit";
|
pname = "pre-commit";
|
||||||
version = "1.21.0";
|
version = "1.21.0";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue