pythonPackages.fastjet: init

+13 -4
+8 -4
pkgs/development/libraries/physics/fastjet/default.nix
··· 1 - { lib, stdenv, fetchurl, python2 }: 2 3 stdenv.mkDerivation rec { 4 pname = "fastjet"; ··· 9 hash = "sha256-7gfIdHyOrYbYjeSp5OjR6efXYUlz9WMbqCl/egJHi5E="; 10 }; 11 12 - buildInputs = [ python2 ]; 13 14 configureFlags = [ 15 "--enable-allcxxplugins" 16 - "--enable-pyext" 17 - ]; 18 19 enableParallelBuilding = true; 20
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , python 5 + , withPython ? false 6 + }: 7 8 stdenv.mkDerivation rec { 9 pname = "fastjet"; ··· 14 hash = "sha256-7gfIdHyOrYbYjeSp5OjR6efXYUlz9WMbqCl/egJHi5E="; 15 }; 16 17 + buildInputs = lib.optional withPython python; 18 19 configureFlags = [ 20 "--enable-allcxxplugins" 21 + ] ++ lib.optional withPython "--enable-pyext"; 22 23 enableParallelBuilding = true; 24
+5
pkgs/top-level/python-packages.nix
··· 2502 2503 fastimport = callPackage ../development/python-modules/fastimport { }; 2504 2505 fastjsonschema = callPackage ../development/python-modules/fastjsonschema { }; 2506 2507 fastnlo_toolkit = toPythonModule (pkgs.fastnlo_toolkit.override {
··· 2502 2503 fastimport = callPackage ../development/python-modules/fastimport { }; 2504 2505 + fastjet = toPythonModule (pkgs.fastjet.override { 2506 + withPython = true; 2507 + inherit python; 2508 + }); 2509 + 2510 fastjsonschema = callPackage ../development/python-modules/fastjsonschema { }; 2511 2512 fastnlo_toolkit = toPythonModule (pkgs.fastnlo_toolkit.override {