mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
yoda: provide python3Packages.yoda
This commit is contained in:
parent
34890e42af
commit
dc57bd84b0
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, python2Packages, root, makeWrapper, zlib, withRootSupport ? false }:
|
{ stdenv, fetchurl, fetchpatch, python, root, makeWrapper, zlib, withRootSupport ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "yoda";
|
pname = "yoda";
|
||||||
@ -9,14 +9,26 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1ki88rscnym0vjxpfgql8m1lrc7vm1jb9w4jhw9lvv3rk84lpdng";
|
sha256 = "1ki88rscnym0vjxpfgql8m1lrc7vm1jb9w4jhw9lvv3rk84lpdng";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonPath = []; # python wrapper support
|
patches = [
|
||||||
|
# fixes "TypeError: expected bytes, str found" in writeYODA()
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.com/hepcedar/yoda/commit/d2bbbe92912457f8a29b440cbfa0b39daf28ec34.diff";
|
||||||
|
sha256 = "1x60piswpxwak61r2sdclsc8pzi1fshpkjnxlyflsa1iap77vkq8";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = with python2Packages; [ python numpy matplotlib makeWrapper ]
|
nativeBuildInputs = with python.pkgs; [ cython makeWrapper ];
|
||||||
|
buildInputs = [ python ]
|
||||||
|
++ (with python.pkgs; [ numpy matplotlib ])
|
||||||
++ stdenv.lib.optional withRootSupport root;
|
++ stdenv.lib.optional withRootSupport root;
|
||||||
propagatedBuildInputs = [ zlib ];
|
propagatedBuildInputs = [ zlib ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
touch pyext/yoda/*.{pyx,pxd}
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for prog in "$out"/bin/*; do
|
for prog in "$out"/bin/*; do
|
||||||
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
|
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
|
||||||
|
@ -24626,7 +24626,9 @@ in
|
|||||||
|
|
||||||
thepeg = callPackage ../development/libraries/physics/thepeg { };
|
thepeg = callPackage ../development/libraries/physics/thepeg { };
|
||||||
|
|
||||||
yoda = callPackage ../development/libraries/physics/yoda { };
|
yoda = callPackage ../development/libraries/physics/yoda {
|
||||||
|
python = python2;
|
||||||
|
};
|
||||||
yoda-with-root = lowPrio (yoda.override {
|
yoda-with-root = lowPrio (yoda.override {
|
||||||
withRootSupport = true;
|
withRootSupport = true;
|
||||||
});
|
});
|
||||||
|
@ -5693,6 +5693,10 @@ in {
|
|||||||
|
|
||||||
xxhash = callPackage ../development/python-modules/xxhash { };
|
xxhash = callPackage ../development/python-modules/xxhash { };
|
||||||
|
|
||||||
|
yoda = toPythonModule (pkgs.yoda.override {
|
||||||
|
inherit python;
|
||||||
|
});
|
||||||
|
|
||||||
youtube-dl = callPackage ../tools/misc/youtube-dl {};
|
youtube-dl = callPackage ../tools/misc/youtube-dl {};
|
||||||
|
|
||||||
youtube-dl-light = callPackage ../tools/misc/youtube-dl {
|
youtube-dl-light = callPackage ../tools/misc/youtube-dl {
|
||||||
|
Loading…
Reference in New Issue
Block a user