Merge branch 'master' into staging-next

This commit is contained in:
WORLDofPEACE 2020-09-20 18:43:05 -04:00
commit d756789d4a
17 changed files with 196 additions and 97 deletions

View File

@ -105,6 +105,9 @@ insert_final_newline = unset
indent_size = unset indent_size = unset
trim_trailing_whitespace = unset trim_trailing_whitespace = unset
[pkgs/tools/misc/timidity/timidity.cfg]
trim_trailing_whitespace = unset
[pkgs/top-level/emscripten-packages.nix] [pkgs/top-level/emscripten-packages.nix]
trim_trailing_whitespace = unset trim_trailing_whitespace = unset

View File

@ -55,7 +55,7 @@ Follow these steps to backport a change into a release branch in compliance with
1. Take note of the commits in which the change was introduced into `master` branch. 1. Take note of the commits in which the change was introduced into `master` branch.
2. Check out the target _release branch_, e.g. `release-20.03`. Do not use a _channel branch_ like `nixos-20.03` or `nixpkgs-20.03`. 2. Check out the target _release branch_, e.g. `release-20.03`. Do not use a _channel branch_ like `nixos-20.03` or `nixpkgs-20.03`.
3. Create a branch for your change, e.g. `git checkout -b backport`. 3. Create a branch for your change, e.g. `git checkout -b backport`.
4. When the reason to backport is not obvious from the original commit message, use `git cherry-pick -xe <original commit>` and add a reason. Otherwise use `git cherry-pick -x <original commit>`. That's fine for minor version updates that only include security and bug fixes, commits that fixes an otherwise broken package or similar. 4. When the reason to backport is not obvious from the original commit message, use `git cherry-pick -xe <original commit>` and add a reason. Otherwise use `git cherry-pick -x <original commit>`. That's fine for minor version updates that only include security and bug fixes, commits that fixes an otherwise broken package or similar. Please also ensure the commits exists on the master branch; in the case of squashed or rebased merges, the commit hash will change and the new commits can be found in the merge message at the bottom of the master pull request.
5. Push to GitHub and open a backport pull request. Make sure to select the release branch (e.g. `release-20.03`) as the target branch of the pull request, and link to the pull request in which the original change was comitted to `master`. The pull request title should be the commit title with the release version as prefix, e.g. `[20.03]`. 5. Push to GitHub and open a backport pull request. Make sure to select the release branch (e.g. `release-20.03`) as the target branch of the pull request, and link to the pull request in which the original change was comitted to `master`. The pull request title should be the commit title with the release version as prefix, e.g. `[20.03]`.
## Reviewing contributions ## Reviewing contributions

View File

@ -5,7 +5,6 @@
outputs = { self }: outputs = { self }:
let let
jobs = import ./pkgs/top-level/release.nix { jobs = import ./pkgs/top-level/release.nix {
nixpkgs = self; nixpkgs = self;
}; };
@ -28,10 +27,31 @@
lib = lib.extend (final: prev: { lib = lib.extend (final: prev: {
nixosSystem = { modules, ... } @ args: nixosSystem = { modules, ... } @ args:
import ./nixos/lib/eval-config.nix (args // { import ./nixos/lib/eval-config.nix (args // {
modules = modules ++ modules =
[ { system.nixos.versionSuffix = let
vmConfig = (import ./nixos/lib/eval-config.nix
(args // {
modules = modules ++ [ ./nixos/modules/virtualisation/qemu-vm.nix ];
})).config;
vmWithBootLoaderConfig = (import ./nixos/lib/eval-config.nix
(args // {
modules = modules ++ [
./nixos/modules/virtualisation/qemu-vm.nix
{ virtualisation.useBootLoader = true; }
];
})).config;
in
modules ++ [
{
system.nixos.versionSuffix =
".${final.substring 0 8 (self.lastModifiedDate or self.lastModified)}.${self.shortRev or "dirty"}"; ".${final.substring 0 8 (self.lastModifiedDate or self.lastModified)}.${self.shortRev or "dirty"}";
system.nixos.revision = final.mkIf (self ? rev) self.rev; system.nixos.revision = final.mkIf (self ? rev) self.rev;
system.build = {
vm = vmConfig.system.build.vm;
vmWithBootLoader = vmWithBootLoaderConfig.system.build.vm;
};
} }
]; ];
}); });

View File

@ -438,15 +438,17 @@ if [ -z "$rollback" ]; then
if [[ -z $flake ]]; then if [[ -z $flake ]]; then
pathToConfig="$(nixBuild '<nixpkgs/nixos>' -A vm -k "${extraBuildFlags[@]}")" pathToConfig="$(nixBuild '<nixpkgs/nixos>' -A vm -k "${extraBuildFlags[@]}")"
else else
echo "$0: 'build-vm' is not supported with '--flake'" >&2 nix "${flakeFlags[@]}" build "$flake#$flakeAttr.config.system.build.vm" \
exit 1 "${extraBuildFlags[@]}" "${lockFlags[@]}"
pathToConfig="$(readlink -f ./result)"
fi fi
elif [ "$action" = build-vm-with-bootloader ]; then elif [ "$action" = build-vm-with-bootloader ]; then
if [[ -z $flake ]]; then if [[ -z $flake ]]; then
pathToConfig="$(nixBuild '<nixpkgs/nixos>' -A vmWithBootLoader -k "${extraBuildFlags[@]}")" pathToConfig="$(nixBuild '<nixpkgs/nixos>' -A vmWithBootLoader -k "${extraBuildFlags[@]}")"
else else
echo "$0: 'build-vm-with-bootloader' is not supported with '--flake'" >&2 nix "${flakeFlags[@]}" build "$flake#$flakeAttr.config.system.build.vmWithBootLoader" \
exit 1 "${extraBuildFlags[@]}" "${lockFlags[@]}"
pathToConfig="$(readlink -f ./result)"
fi fi
else else
showSyntax showSyntax

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "http://www.warmplace.ru/soft/sunvox/sunvox-${version}.zip"; url = "http://www.warmplace.ru/soft/sunvox/sunvox-${version}.zip";
sha256 = "15pyc3dk4dqlivgzki8sv7xpwg3bbn5xv9338g16a0dbn7s3kich"; sha256 = "04f7psm0lvc09nw7d2wp0sncf37bym2v7hhxp4v8c8gdgayj7k8m";
}; };
buildInputs = [ unzip ]; buildInputs = [ unzip ];

View File

@ -196,6 +196,26 @@ let
ivy-rtags = fix-rtags super.ivy-rtags; ivy-rtags = fix-rtags super.ivy-rtags;
libgit = super.libgit.overrideAttrs(attrs: {
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ [ pkgs.cmake ];
buildInputs = attrs.buildInputs ++ [ pkgs.libgit2 ];
dontUseCmakeBuildDir = true;
postPatch = ''
sed -i s/'add_subdirectory(libgit2)'// CMakeLists.txt
'';
postBuild = ''
pushd working/libgit
make
popd
'';
postInstall = ''
outd=$(echo $out/share/emacs/site-lisp/elpa/libgit-**)
mkdir $outd/build
install -m444 -t $outd/build ./source/src/libegit2.so
rm -r $outd/src $outd/Makefile $outd/CMakeLists.txt
'';
});
magit = super.magit.overrideAttrs (attrs: { magit = super.magit.overrideAttrs (attrs: {
# searches for Git at build time # searches for Git at build time
nativeBuildInputs = nativeBuildInputs =

View File

@ -1,12 +1,16 @@
{ boost { boost
, fetchFromGitHub , fetchFromGitHub
, libGLU
, mkDerivationWith , mkDerivationWith
, muparser , muparser
, pkgconfig , pkgconfig
, qtbase
, qmake , qmake
, qt5 , qtscript
, qtsvg
, qtxmlpatterns
, qttools
, stdenv , stdenv
, libGLU
}: }:
mkDerivationWith stdenv.mkDerivation rec { mkDerivationWith stdenv.mkDerivation rec {
@ -25,11 +29,11 @@ mkDerivationWith stdenv.mkDerivation rec {
]; ];
postPatch = '' postPatch = ''
if ! [ -d src/3rdparty/qt-labs-qtscriptgenerator-${qt5.qtbase.version} ]; then if ! [ -d src/3rdparty/qt-labs-qtscriptgenerator-${qtbase.version} ]; then
mkdir src/3rdparty/qt-labs-qtscriptgenerator-${qt5.qtbase.version} mkdir src/3rdparty/qt-labs-qtscriptgenerator-${qtbase.version}
cp \ cp \
src/3rdparty/qt-labs-qtscriptgenerator-5.14.0/qt-labs-qtscriptgenerator-5.14.0.pro \ src/3rdparty/qt-labs-qtscriptgenerator-5.14.0/qt-labs-qtscriptgenerator-5.14.0.pro \
src/3rdparty/qt-labs-qtscriptgenerator-${qt5.qtbase.version}/qt-labs-qtscriptgenerator-${qt5.qtbase.version}.pro src/3rdparty/qt-labs-qtscriptgenerator-${qtbase.version}/qt-labs-qtscriptgenerator-${qtbase.version}.pro
fi fi
''; '';
@ -63,7 +67,7 @@ mkDerivationWith stdenv.mkDerivation rec {
# workaround to fix the library browser: # workaround to fix the library browser:
rm -r $out/lib/plugins/sqldrivers rm -r $out/lib/plugins/sqldrivers
ln -s -t $out/lib/plugins ${qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}/sqldrivers ln -s -t $out/lib/plugins ${qtbase}/${qtbase.qtPluginPrefix}/sqldrivers
install -Dm644 scripts/qcad_icon.svg $out/share/icons/hicolor/scalable/apps/qcad.svg install -Dm644 scripts/qcad_icon.svg $out/share/icons/hicolor/scalable/apps/qcad.svg
@ -74,16 +78,16 @@ mkDerivationWith stdenv.mkDerivation rec {
boost boost
muparser muparser
libGLU libGLU
qt5.qtbase qtbase
qt5.qtscript qtscript
qt5.qtsvg qtsvg
qt5.qtxmlpatterns qtxmlpatterns
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig pkgconfig
qt5.qmake qmake
qt5.qttools qttools
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;
@ -93,6 +97,6 @@ mkDerivationWith stdenv.mkDerivation rec {
homepage = "https://qcad.org"; homepage = "https://qcad.org";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ yvesf ]; maintainers = with maintainers; [ yvesf ];
platforms = qt5.qtbase.meta.platforms; platforms = qtbase.meta.platforms;
}; };
} }

View File

@ -4,11 +4,11 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "git-machete"; pname = "git-machete";
version = "2.15.5"; version = "2.15.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "11an0hwva1jlf9y7vd9mscs4g6lzja1rwizsani6411xs6m121a3"; sha256 = "0ajb3m3i3pfc5v3gshglk7qphk1rpniwx8q8isgx1a6cyarzr9bd";
}; };
nativeBuildInputs = [ installShellFiles pbr ]; nativeBuildInputs = [ installShellFiles pbr ];

View File

@ -16,20 +16,20 @@ assert modifyPublicMain -> mainClassFile != null;
stdenv.mkDerivation { stdenv.mkDerivation {
inherit name src; inherit name src;
buildInputs = [ dotnetfx ]; buildInputs = [ dotnetfx ];
preConfigure = '' preConfigure = ''
cd ${baseDir} cd ${baseDir}
''; '';
preBuild = '' preBuild = ''
${stdenv.lib.optionalString modifyPublicMain '' ${stdenv.lib.optionalString modifyPublicMain ''
sed -i -e "s|static void Main|public static void Main|" ${mainClassFile} sed -i -e "s|static void Main|public static void Main|" ${mainClassFile}
''} ''}
${preBuild} ${preBuild}
''; '';
installPhase = '' installPhase = ''
addDeps() addDeps()
{ {
@ -39,44 +39,44 @@ stdenv.mkDerivation {
do do
windowsPath=$(cygpath --windows $i) windowsPath=$(cygpath --windows $i)
assemblySearchPaths="$assemblySearchPaths;$windowsPath" assemblySearchPaths="$assemblySearchPaths;$windowsPath"
addDeps $i addDeps $i
done done
fi fi
} }
for i in ${toString assemblyInputs} for i in ${toString assemblyInputs}
do do
windowsPath=$(cygpath --windows $i) windowsPath=$(cygpath --windows $i)
echo "Using assembly path: $windowsPath" echo "Using assembly path: $windowsPath"
if [ "$assemblySearchPaths" = "" ] if [ "$assemblySearchPaths" = "" ]
then then
assemblySearchPaths="$windowsPath" assemblySearchPaths="$windowsPath"
else else
assemblySearchPaths="$assemblySearchPaths;$windowsPath" assemblySearchPaths="$assemblySearchPaths;$windowsPath"
fi fi
addDeps $i addDeps $i
done done
echo "Assembly search paths are: $assemblySearchPaths" echo "Assembly search paths are: $assemblySearchPaths"
if [ "$assemblySearchPaths" != "" ] if [ "$assemblySearchPaths" != "" ]
then then
echo "Using assembly search paths args: $assemblySearchPathsArg" echo "Using assembly search paths args: $assemblySearchPathsArg"
export AssemblySearchPaths=$assemblySearchPaths export AssemblySearchPaths=$assemblySearchPaths
fi fi
mkdir -p $out mkdir -p $out
MSBuild.exe ${toString slnFile} /nologo /t:${targets} /p:IntermediateOutputPath=$(cygpath --windows $out)\\ /p:OutputPath=$(cygpath --windows $out)\\ /verbosity:${verbosity} ${options} MSBuild.exe ${toString slnFile} /nologo /t:${targets} /p:IntermediateOutputPath=$(cygpath --windows $out)\\ /p:OutputPath=$(cygpath --windows $out)\\ /verbosity:${verbosity} ${options}
# Because .NET assemblies store strings as UTF-16 internally, we cannot detect # Because .NET assemblies store strings as UTF-16 internally, we cannot detect
# hashes. Therefore a text files containing the proper paths is created # hashes. Therefore a text files containing the proper paths is created
# We can also use this file the propagate transitive dependencies. # We can also use this file the propagate transitive dependencies.
mkdir -p $out/nix-support mkdir -p $out/nix-support
for i in ${toString assemblyInputs} for i in ${toString assemblyInputs}
do do
echo $i >> $out/nix-support/dotnet-assemblies echo $i >> $out/nix-support/dotnet-assemblies

View File

@ -10,7 +10,7 @@ let dotnetenv =
buildWrapper = import ./wrapper.nix { buildWrapper = import ./wrapper.nix {
inherit dotnetenv; inherit dotnetenv;
}; };
inherit (dotnetfx) assembly20Path wcfPath referenceAssembly30Path referenceAssembly35Path; inherit (dotnetfx) assembly20Path wcfPath referenceAssembly30Path referenceAssembly35Path;
}; };
in in

View File

@ -36,25 +36,25 @@ dotnetenv.buildSolution {
do do
windowsPath=$(cygpath --windows $i | sed 's|\\|\\\\|g') windowsPath=$(cygpath --windows $i | sed 's|\\|\\\\|g')
assemblySearchArray="$assemblySearchArray @\"$windowsPath\"" assemblySearchArray="$assemblySearchArray @\"$windowsPath\""
addRuntimeDeps $i addRuntimeDeps $i
done done
fi fi
} }
export exePath=$(cygpath --windows $(find ${application} -name \*.exe) | sed 's|\\|\\\\|g') export exePath=$(cygpath --windows $(find ${application} -name \*.exe) | sed 's|\\|\\\\|g')
# Generate assemblySearchPaths string array contents # Generate assemblySearchPaths string array contents
for path in ${toString assemblyInputs} for path in ${toString assemblyInputs}
do do
assemblySearchArray="$assemblySearchArray @\"$(cygpath --windows $path | sed 's|\\|\\\\|g')\", " assemblySearchArray="$assemblySearchArray @\"$(cygpath --windows $path | sed 's|\\|\\\\|g')\", "
addRuntimeDeps $path addRuntimeDeps $path
done done
sed -e "s|@ROOTNAMESPACE@|${namespace}Wrapper|" \ sed -e "s|@ROOTNAMESPACE@|${namespace}Wrapper|" \
-e "s|@ASSEMBLYNAME@|${namespace}|" \ -e "s|@ASSEMBLYNAME@|${namespace}|" \
Wrapper/Wrapper.csproj.in > Wrapper/Wrapper.csproj Wrapper/Wrapper.csproj.in > Wrapper/Wrapper.csproj
sed -e "s|@NAMESPACE@|${namespace}|g" \ sed -e "s|@NAMESPACE@|${namespace}|g" \
-e "s|@MAINCLASSNAME@|${mainClassName}|g" \ -e "s|@MAINCLASSNAME@|${mainClassName}|g" \
-e "s|@EXEPATH@|$exePath|g" \ -e "s|@EXEPATH@|$exePath|g" \

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, blas { stdenv, fetchFromGitHub, cmake, pkgconfig, boost, lapack
, Accelerate, CoreGraphics, CoreVideo , Accelerate, CoreGraphics, CoreVideo
}: }:
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
]; ];
nativeBuildInputs = [ pkgconfig cmake ]; nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ boost blas ] buildInputs = [ boost lapack ]
++ stdenv.lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreVideo ]; ++ stdenv.lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreVideo ];
enableParallelBuilding = true; enableParallelBuilding = true;
@ -30,11 +30,11 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A vector and matrix math library implemented using C++ templates"; description = "A vector and matrix math library implemented using C++ templates";
longDescription = ''vmmlib is a vector and matrix math library implemented longDescription = ''vmmlib is a vector and matrix math library implemented
using C++ templates. Its basic functionality includes a vector using C++ templates. Its basic functionality includes a vector
and a matrix class, with additional functionality for the and a matrix class, with additional functionality for the
often-used 3d and 4d vectors and 3x3 and 4x4 matrices. often-used 3d and 4d vectors and 3x3 and 4x4 matrices.
More advanced functionality include solvers, frustum More advanced functionality include solvers, frustum
computations and frustum culling classes, and spatial data structures''; computations and frustum culling classes, and spatial data structures'';
license = licenses.bsd2; license = licenses.bsd2;
@ -43,4 +43,3 @@ stdenv.mkDerivation rec {
platforms = platforms.all; platforms = platforms.all;
}; };
} }

View File

@ -1,28 +1,34 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, pythonOlder , pythonOlder
, pyyaml
, six
, requests
, aws-sam-translator , aws-sam-translator
, importlib-metadata , importlib-metadata
, importlib-resources , importlib-resources
, jsonpatch , jsonpatch
, jsonschema , jsonschema
, pathlib2
, setuptools
, junit-xml , junit-xml
, networkx , networkx
, pathlib2
, pyyaml
, requests
, setuptools
, six
# Test inputs
, pytestCheckHook
, mock
, pydot
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cfn-lint"; pname = "cfn-lint";
version = "0.35.0"; version = "0.35.1";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "aws-cloudformation";
sha256 = "42023d89520e3a29891ec2eb4c326eef9d1f7516fe9abee8b6c97ce064187b45"; repo = "cfn-python-lint";
rev = "v${version}";
sha256 = "1ajb0412hw9fg9m4b3xbpfbp8cixmnpjxrkaks6k749xinzsv7qk";
}; };
postPatch = '' postPatch = ''
@ -30,20 +36,18 @@ buildPythonPackage rec {
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
pyyaml
six
requests
aws-sam-translator aws-sam-translator
jsonpatch jsonpatch
jsonschema jsonschema
pathlib2
setuptools
junit-xml junit-xml
networkx networkx
pathlib2
pyyaml
requests
setuptools
six
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ]; ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
# No tests included in archive
doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
"cfnlint" "cfnlint"
"cfnlint.conditions" "cfnlint.conditions"
@ -60,9 +64,13 @@ buildPythonPackage rec {
"cfnlint.transform" "cfnlint.transform"
]; ];
checkInputs = [ pytestCheckHook mock pydot ];
preCheck = "export PATH=$out/bin:$PATH";
meta = with lib; { meta = with lib; {
description = "Checks cloudformation for practices and behaviour that could potentially be improved"; description = "Checks cloudformation for practices and behaviour that could potentially be improved";
homepage = "https://github.com/aws-cloudformation/cfn-python-lint"; homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
changelog = "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
}; };
} }

View File

@ -1,41 +1,32 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pytest , pythonOlder
, fetchpatch
, glibcLocales , glibcLocales
, importlib-resources
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "netaddr"; pname = "netaddr";
version = "0.7.19"; version = "0.8.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "38aeec7cdd035081d3a4c306394b19d677623bf76fa0913f6695127c7753aefd"; sha256 = "0hx2npi0wnhwlcybilgwlddw6qffx1mb7a3sj4p9s7bvl33mgk6n";
}; };
LC_ALL = "en_US.UTF-8"; LC_ALL = "en_US.UTF-8";
checkInputs = [ glibcLocales pytest ];
checkPhase = '' propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.7") [ importlib-resources ];
# fails on python3.7: https://github.com/drkjam/netaddr/issues/182
py.test \
-k 'not test_ip_splitter_remove_prefix_larger_than_input_range' \
netaddr/tests
'';
patches = [ checkInputs = [ glibcLocales pytestCheckHook ];
(fetchpatch {
url = "https://github.com/drkjam/netaddr/commit/2ab73f10be7069c9412e853d2d0caf29bd624012.patch";
sha256 = "0s1cdn9v5alpviabhcjmzc0m2pnpq9dh2fnnk2x96dnry1pshg39";
})
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://github.com/drkjam/netaddr/"; homepage = "https://netaddr.readthedocs.io/en/latest/";
downloadPage = "https://github.com/netaddr/netaddr/releases";
changelog = "https://netaddr.readthedocs.io/en/latest/changes.html";
description = "A network address manipulation library for Python"; description = "A network address manipulation library for Python";
license = licenses.mit; license = licenses.mit;
}; };
} }

View File

@ -0,0 +1,51 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, libngspice
, numpy
, ply
, scipy
, pyyaml
, cffi
, requests
, matplotlib
, setuptools
}:
buildPythonPackage rec {
pname = "PySpice";
version = "1.4.3";
src = fetchPypi {
inherit pname version;
sha256 = "0mnyy8nr06d1al99kniyqcm0p9a8dvkg719s42sajl8yf51sayc9";
};
propagatedBuildInputs = [
setuptools
requests
pyyaml
cffi
matplotlib
numpy
ply
scipy
libngspice
];
doCheck = false;
pythonImportsCheck = [ "PySpice" ];
postPatch = ''
substituteInPlace PySpice/Spice/NgSpice/Shared.py --replace \
"ffi.dlopen(self.library_path)" \
"ffi.dlopen('${libngspice}/lib/libngspice${stdenv.hostPlatform.extensions.sharedLibrary}')"
'';
meta = with stdenv.lib; {
description = "Simulate electronic circuit using Python and the Ngspice / Xyce simulators";
homepage = "https://github.com/FabriceSalvaire/PySpice";
license = licenses.gpl3Only;
maintainers = with maintainers; [ matthuszagh ];
};
}

View File

@ -1,25 +1,29 @@
{ lib { lib
, isPy27
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, matplotlib
, numpy , numpy
, scipy , scipy
, scikitlearn , scikitlearn
, pyaml , pyaml
, pytest , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "scikit-optimize"; pname = "scikit-optimize";
version = "0.6"; version = "0.8.1";
disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "scikit-optimize"; owner = "scikit-optimize";
repo = "scikit-optimize"; repo = "scikit-optimize";
rev = "v${version}"; rev = "v${version}";
sha256 = "1srbb20k8ddhpcfxwdflapfh6xfyrd3dnclcg3bsfq1byrcmv0d4"; sha256 = "1bz8gxccx8n99abw49j8h5zf3i568g5hcf8nz1yinma8jqhxjkjh";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
matplotlib
numpy numpy
scipy scipy
scikitlearn scikitlearn
@ -27,14 +31,9 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
]; ];
# remove --ignore at next release > 0.6
checkPhase = ''
pytest skopt --ignore skopt/tests/test_searchcv.py
'';
meta = with lib; { meta = with lib; {
description = "Sequential model-based optimization toolbox"; description = "Sequential model-based optimization toolbox";
homepage = "https://scikit-optimize.github.io/"; homepage = "https://scikit-optimize.github.io/";

View File

@ -5383,6 +5383,8 @@ in {
pyspf = callPackage ../development/python-modules/pyspf { }; pyspf = callPackage ../development/python-modules/pyspf { };
pyspice = callPackage ../development/python-modules/pyspice { };
pyspinel = callPackage ../development/python-modules/pyspinel { }; pyspinel = callPackage ../development/python-modules/pyspinel { };
pyspotify = callPackage ../development/python-modules/pyspotify { }; pyspotify = callPackage ../development/python-modules/pyspotify { };