1
0
Fork 0
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:
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 , 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";