16 buildPythonPackage rec {
19 disabled = pythonOlder "3.6";
22 inherit pname version;
23 sha256 = "d28448accad98959e0f5932af8736e90a1f3f9ff965121c6881d24cdfca23d22";
26 propagatedBuildInputs = [
39 pythonImportsCheck = [ "PySpice" ];
42 substituteInPlace PySpice/Spice/NgSpice/Shared.py --replace \
43 "ffi.dlopen(self.library_path)" \
44 "ffi.dlopen('${libngspice}/lib/libngspice${stdenv.hostPlatform.extensions.sharedLibrary}')"
48 description = "Simulate electronic circuit using Python and the Ngspice / Xyce simulators";
49 homepage = "https://github.com/FabriceSalvaire/PySpice";
50 license = licenses.gpl3Only;
51 maintainers = with maintainers; [ matthuszagh ];