mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Merge master into staging-next
This commit is contained in:
commit
2b17947157
@ -1,38 +1,32 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
setuptools,
|
python3Packages,
|
||||||
nbformat,
|
|
||||||
nose,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "nbmerge";
|
pname = "nbmerge";
|
||||||
version = "0.0.4";
|
version = "0.0.4";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jbn";
|
owner = "jbn";
|
||||||
repo = pname;
|
repo = "nbmerge";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-Uqs/SO/AculHCFYcbjW08kLQX5GSU/eAwkN2iy/vhLM=";
|
hash = "sha256-Uqs/SO/AculHCFYcbjW08kLQX5GSU/eAwkN2iy/vhLM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools ];
|
patches = [ ./pytest-compatibility.patch ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ nbformat ];
|
build-system = [ python3Packages.setuptools ];
|
||||||
|
|
||||||
nativeCheckInputs = [ nose ];
|
dependencies = [ python3Packages.nbformat ];
|
||||||
|
|
||||||
checkPhase = ''
|
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
|
||||||
runHook preCheck
|
|
||||||
|
|
||||||
|
postCheck = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
nosetests -v
|
|
||||||
PATH=$PATH:$out/bin ./cli_tests.sh
|
PATH=$PATH:$out/bin ./cli_tests.sh
|
||||||
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "nbmerge" ];
|
pythonImportsCheck = [ "nbmerge" ];
|
19
pkgs/by-name/nb/nbmerge/pytest-compatibility.patch
Normal file
19
pkgs/by-name/nb/nbmerge/pytest-compatibility.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/tests/test_merge.py b/tests/test_merge.py
|
||||||
|
index 06ee559..9d7b1af 100644
|
||||||
|
--- a/tests/test_merge.py
|
||||||
|
+++ b/tests/test_merge.py
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+import io
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import unittest
|
||||||
|
@@ -21,8 +22,7 @@ def file_names_from(file_paths):
|
||||||
|
|
||||||
|
class TestMerge(unittest.TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
- if not hasattr(sys.stdout, "getvalue"):
|
||||||
|
- self.fail("need to run in buffered mode")
|
||||||
|
+ sys.stdout = io.StringIO()
|
||||||
|
|
||||||
|
def _validate_merged_three(self, merged):
|
||||||
|
self.assertEqual(len(merged.cells), 6)
|
@ -8,7 +8,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "serpl";
|
pname = "serpl";
|
||||||
version = "0.1.30";
|
version = "0.1.34";
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -16,12 +16,12 @@ rustPlatform.buildRustPackage {
|
|||||||
owner = "yassinebridi";
|
owner = "yassinebridi";
|
||||||
repo = "serpl";
|
repo = "serpl";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-ZltOhlx9aPD5vO9eTpoXWR6qXUwB+jW+tATkwX9UlIU=";
|
hash = "sha256-U6fcpFe95rM3GXu7OJhhGkpV1yQNUukqRpGeOtd8UhU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
cargoHash = "sha256-FDS9JOmOtWOajB1tSd7QyW/KutRujs+3KjXxlNktrDM=";
|
cargoHash = "sha256-YAp7r7I/LX/4T93auGusTLPKpuZd3XzZ4HP6gOR0DZ0=";
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
# Serpl needs ripgrep to function properly.
|
# Serpl needs ripgrep to function properly.
|
||||||
|
@ -41,7 +41,7 @@ let
|
|||||||
isDarwin
|
isDarwin
|
||||||
buildPlatform
|
buildPlatform
|
||||||
targetPlatform;
|
targetPlatform;
|
||||||
inherit (darwin) cctools;
|
inherit (darwin) cctools-llvm;
|
||||||
inherit (swiftPackages) apple_sdk swift;
|
inherit (swiftPackages) apple_sdk swift;
|
||||||
|
|
||||||
releaseManifest = lib.importJSON releaseManifestFile;
|
releaseManifest = lib.importJSON releaseManifestFile;
|
||||||
@ -59,7 +59,7 @@ let
|
|||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
ln -s "${cctools}/bin/dwarfdump" "$out/bin"
|
ln -s "${cctools-llvm}/bin/dwarfdump" "$out/bin"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -364,6 +364,9 @@ in stdenv.mkDerivation {
|
|||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# > clang-15-unwrapped: error: unsupported option '-fzero-call-used-regs=used-gpr' for target 'arm64-apple-macosx10.9.0'
|
||||||
|
hardeningDisable = lib.optional stdenv.isDarwin "zerocallusedregs";
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
export SWIFT_SOURCE_ROOT="$PWD"
|
export SWIFT_SOURCE_ROOT="$PWD"
|
||||||
mkdir -p ../build
|
mkdir -p ../build
|
||||||
@ -702,7 +705,6 @@ in stdenv.mkDerivation {
|
|||||||
maintainers = with lib.maintainers; [ dtzWill trepetti dduan trundle stephank ];
|
maintainers = with lib.maintainers; [ dtzWill trepetti dduan trundle stephank ];
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
platforms = with lib.platforms; linux ++ darwin;
|
platforms = with lib.platforms; linux ++ darwin;
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
# Swift doesn't support 32-bit Linux, unknown on other platforms.
|
# Swift doesn't support 32-bit Linux, unknown on other platforms.
|
||||||
badPlatforms = lib.platforms.i686;
|
badPlatforms = lib.platforms.i686;
|
||||||
timeout = 86400; # 24 hours.
|
timeout = 86400; # 24 hours.
|
||||||
|
@ -3,30 +3,44 @@
|
|||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
cython,
|
cython,
|
||||||
|
setuptools,
|
||||||
mkl,
|
mkl,
|
||||||
nose,
|
pytestCheckHook,
|
||||||
six,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mkl-service";
|
pname = "mkl-service";
|
||||||
version = "2.4.1";
|
version = "2.4.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "IntelPython";
|
owner = "IntelPython";
|
||||||
repo = "mkl-service";
|
repo = "mkl-service";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-4UPiQt1hVVlPFZnuKlMK3FLv2cIEXToHKxnyYLXR/sY=";
|
hash = "sha256-4UPiQt1hVVlPFZnuKlMK3FLv2cIEXToHKxnyYLXR/sY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
MKLROOT = mkl;
|
build-system = [
|
||||||
|
cython
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ nose ];
|
env.MKLROOT = mkl;
|
||||||
nativeBuildInputs = [ cython ];
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [ mkl ];
|
||||||
mkl
|
|
||||||
six
|
pythonImportsCheck = [ "mkl" ];
|
||||||
|
|
||||||
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
cd $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# require SIMD compilation
|
||||||
|
"test_cbwr_all"
|
||||||
|
"test_cbwr_branch"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -1,33 +1,40 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
nose,
|
setuptools,
|
||||||
minimock,
|
minimock,
|
||||||
|
pytestCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mypgoclient";
|
pname = "mypgoclient";
|
||||||
version = "1.8";
|
version = "1.9";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gpodder";
|
owner = "gpodder";
|
||||||
repo = "mygpoclient";
|
repo = "mygpoclient";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp";
|
hash = "sha256-McHllitWiBiCdNuJlUg6K/vgr2l3ychu+KOx3r/UCv0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
postPatch = ''
|
||||||
nose
|
substituteInPlace mygpoclient/*_test.py \
|
||||||
minimock
|
--replace-quiet "assertEquals" "assertEqual" \
|
||||||
];
|
--replace-quiet "assert_" "assertTrue"
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
nosetests
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = (!stdenv.isDarwin);
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "mygpoclient" ];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
minimock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Gpodder.net client library";
|
description = "Gpodder.net client library";
|
||||||
|
@ -496,12 +496,18 @@ in rec {
|
|||||||
power-theme = mkTmuxPlugin {
|
power-theme = mkTmuxPlugin {
|
||||||
pluginName = "power";
|
pluginName = "power";
|
||||||
rtpFilePath = "tmux-power.tmux";
|
rtpFilePath = "tmux-power.tmux";
|
||||||
version = "unstable-2020-11-18";
|
version = "unstable-2024-05-12";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "wfxr";
|
owner = "wfxr";
|
||||||
repo = "tmux-power";
|
repo = "tmux-power";
|
||||||
rev = "aec44aa5e00cc39eb71c668b1d73823270058e7d";
|
rev = "16bbde801378a70512059541d104c5ae35be32b9";
|
||||||
sha256 = "11nm8cylx10d565g17acy0bj12n6dcbxp71zca2bmg0j1dq859cm";
|
hash = "sha256-IyYQyIONMnVBwhhcI3anOPxKpv2TfI2KZgJ5o5JtZ8I=";
|
||||||
|
};
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Tmux powerline theme";
|
||||||
|
homepage = "https://github.com/wfxr/tmux-power";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -314,6 +314,7 @@ mapAliases ({
|
|||||||
mrkd = throw "mrkd has been promoted to a top-level attribute name: `pkgs.mrkd`"; # added 2023-08-01
|
mrkd = throw "mrkd has been promoted to a top-level attribute name: `pkgs.mrkd`"; # added 2023-08-01
|
||||||
multi_key_dict = multi-key-dict; # added 2023-11-05
|
multi_key_dict = multi-key-dict; # added 2023-11-05
|
||||||
mutmut = throw "mutmut has been promoted to a top-level attribute name: `pkgs.mutmut`"; # added 2022-10-02
|
mutmut = throw "mutmut has been promoted to a top-level attribute name: `pkgs.mutmut`"; # added 2022-10-02
|
||||||
|
nbmerge = throw "nbmerge has moved to pkgs.nbmerge"; # added 2024-07-05
|
||||||
net2grid = gridnet; # add 2022-04-22
|
net2grid = gridnet; # add 2022-04-22
|
||||||
nghttp2 = throw "in 1.52.0 removed deprecated python bindings."; # added 2023-06-08
|
nghttp2 = throw "in 1.52.0 removed deprecated python bindings."; # added 2023-06-08
|
||||||
ninja-python = ninja; # add 2022-08-03
|
ninja-python = ninja; # add 2022-08-03
|
||||||
|
@ -8835,8 +8835,6 @@ self: super: with self; {
|
|||||||
|
|
||||||
nbmake = callPackage ../development/python-modules/nbmake { };
|
nbmake = callPackage ../development/python-modules/nbmake { };
|
||||||
|
|
||||||
nbmerge = callPackage ../development/python-modules/nbmerge { };
|
|
||||||
|
|
||||||
nbsmoke = callPackage ../development/python-modules/nbsmoke { };
|
nbsmoke = callPackage ../development/python-modules/nbsmoke { };
|
||||||
|
|
||||||
nbsphinx = callPackage ../development/python-modules/nbsphinx { };
|
nbsphinx = callPackage ../development/python-modules/nbsphinx { };
|
||||||
|
Loading…
Reference in New Issue
Block a user