diff options
Diffstat (limited to 'pkgs/development/python-modules/jc/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/jc/default.nix | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/jc/default.nix b/pkgs/development/python-modules/jc/default.nix index 0b29b126af6f..23da7d1ca800 100644 --- a/pkgs/development/python-modules/jc/default.nix +++ b/pkgs/development/python-modules/jc/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPackages -, buildPythonPackage -, fetchFromGitHub -, installShellFiles -, ruamel-yaml -, xmltodict -, pygments -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPackages, + buildPythonPackage, + fetchFromGitHub, + installShellFiles, + ruamel-yaml, + xmltodict, + pygments, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,15 +25,23 @@ buildPythonPackage rec { hash = "sha256-SDZ92m4TVH5/ldGkVZspzIrR0G1vHOv1OvAOSaWYkZ0="; }; - propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ]; + propagatedBuildInputs = [ + ruamel-yaml + xmltodict + pygments + ]; nativeBuildInputs = [ installShellFiles ]; - postInstall = let emulator = stdenv.hostPlatform.emulator buildPackages; in '' - installShellCompletion --cmd jc \ - --bash <(${emulator} $out/bin/jc --bash-comp) \ - --zsh <(${emulator} $out/bin/jc --zsh-comp) - ''; + postInstall = + let + emulator = stdenv.hostPlatform.emulator buildPackages; + in + '' + installShellCompletion --cmd jc \ + --bash <(${emulator} $out/bin/jc --bash-comp) \ + --zsh <(${emulator} $out/bin/jc --zsh-comp) + ''; nativeCheckInputs = [ pytestCheckHook ]; |
