uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
61
pkgs/development/python-modules/skein/default.nix
Normal file
61
pkgs/development/python-modules/skein/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ buildPythonPackage
|
||||
, callPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, lib
|
||||
, cryptography
|
||||
, grpcio
|
||||
, pyyaml
|
||||
, grpcio-tools
|
||||
, hadoop
|
||||
, pytestCheckHook
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "skein";
|
||||
version = "0.8.1";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "04208b4be9df2dc68ac5b3e3ae51fd9b589add95ea1b67222a8de754d17b1efa";
|
||||
};
|
||||
# Update this hash if bumping versions
|
||||
jarHash = "sha256-UGiEoTZ17IhLG72FZ18Zb+Ej4T8z9rMIMDUxzSZGZyY=";
|
||||
skeinJar = callPackage ./skeinjar.nix { inherit pname version jarHash; };
|
||||
|
||||
propagatedBuildInputs = [ cryptography grpcio pyyaml ];
|
||||
buildInputs = [ grpcio-tools ];
|
||||
|
||||
preBuild = ''
|
||||
# Ensure skein.jar exists skips the maven build in setup.py
|
||||
mkdir -p skein/java
|
||||
ln -s ${skeinJar} skein/java/skein.jar
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace skein/core.py --replace "'yarn'" "'${hadoop}/bin/yarn'" \
|
||||
--replace "else 'java'" "else '${hadoop.jdk}/bin/java'"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "skein" ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
# These tests require connecting to a YARN cluster. They could be done through NixOS tests later.
|
||||
disabledTests = [
|
||||
"test_ui"
|
||||
"test_tornado"
|
||||
"test_kv"
|
||||
"test_core"
|
||||
"test_cli"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://jcristharif.com/skein";
|
||||
description = "A tool and library for easily deploying applications on Apache YARN";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ alexbiehl illustris ];
|
||||
# https://github.com/NixOS/nixpkgs/issues/48663#issuecomment-1083031627
|
||||
# replace with https://github.com/NixOS/nixpkgs/pull/140325 once it is merged
|
||||
broken = lib.traceIf isPy27 "${pname} not supported on ${python.executable}" isPy27;
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/skein/skeinjar.nix
Normal file
20
pkgs/development/python-modules/skein/skeinjar.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ fetchPypi, unzip, stdenv, pname, version, jarHash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
format = "wheel";
|
||||
hash = jarHash;
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
installPhase = ''
|
||||
unzip ${src}
|
||||
mv ./skein/java/skein.jar $out
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue