66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{ stdenv
|
|
, isPy3k
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, numpy
|
|
, scipy
|
|
, sympy
|
|
, matplotlib
|
|
, networkx
|
|
, ply
|
|
, pillow
|
|
, cffi
|
|
, requests
|
|
, requests_ntlm
|
|
, IBMQuantumExperience
|
|
, jsonschema
|
|
, psutil
|
|
, cmake
|
|
, llvmPackages
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qiskit";
|
|
version = "0.13.0";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e9c0f23dddb0af27e2bfb920f6ea8600516fa68ec9ae97639faf858ba5d28020";
|
|
};
|
|
|
|
buildInputs = [ cmake ]
|
|
++ stdenv.lib.optional stdenv.isDarwin llvmPackages.openmp;
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
matplotlib
|
|
networkx
|
|
ply
|
|
scipy
|
|
sympy
|
|
pillow
|
|
cffi
|
|
requests
|
|
requests_ntlm
|
|
IBMQuantumExperience
|
|
jsonschema
|
|
psutil
|
|
];
|
|
|
|
# Pypi's tarball doesn't contain tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Quantum Software Development Kit for writing quantum computing experiments, programs, and applications";
|
|
homepage = https://github.com/QISKit/qiskit-terra;
|
|
license = stdenv.lib.licenses.asl20;
|
|
maintainers = with stdenv.lib.maintainers; [
|
|
pandaman
|
|
];
|
|
# Needs to be updated and have its new dependencies added
|
|
broken = true;
|
|
};
|
|
}
|