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
53
pkgs/development/python-modules/pyspice/default.nix
Normal file
53
pkgs/development/python-modules/pyspice/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib, stdenv
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, libngspice
|
||||
, numpy
|
||||
, ply
|
||||
, scipy
|
||||
, pyyaml
|
||||
, cffi
|
||||
, requests
|
||||
, matplotlib
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PySpice";
|
||||
version = "1.5";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d28448accad98959e0f5932af8736e90a1f3f9ff965121c6881d24cdfca23d22";
|
||||
};
|
||||
|
||||
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 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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue