2018-05-12 07:49:14 +01:00
|
|
|
{ stdenv
|
|
|
|
, isPy3k
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, sympy
|
|
|
|
, matplotlib
|
|
|
|
, networkx
|
|
|
|
, ply
|
|
|
|
, pillow
|
|
|
|
, cffi
|
|
|
|
, requests
|
|
|
|
, requests_ntlm
|
|
|
|
, IBMQuantumExperience
|
2018-07-03 06:40:09 +01:00
|
|
|
, jsonschema
|
|
|
|
, psutil
|
2018-05-12 07:49:14 +01:00
|
|
|
, cmake
|
|
|
|
, llvmPackages
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qiskit";
|
2019-02-23 14:36:02 +00:00
|
|
|
version = "0.7.3";
|
2018-05-12 07:49:14 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-23 14:36:02 +00:00
|
|
|
sha256 = "63e7a7c3033fe955d715cc825b3fb61d27c25ad66e1761493ca2243b5dbfb4f9";
|
2018-05-12 07:49:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin llvmPackages.openmp;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
matplotlib
|
|
|
|
networkx
|
|
|
|
ply
|
|
|
|
scipy
|
|
|
|
sympy
|
|
|
|
pillow
|
|
|
|
cffi
|
|
|
|
requests
|
|
|
|
requests_ntlm
|
|
|
|
IBMQuantumExperience
|
2018-07-03 06:40:09 +01:00
|
|
|
jsonschema
|
|
|
|
psutil
|
2018-05-12 07:49:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Pypi's tarball doesn't contain tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Quantum Software Development Kit for writing quantum computing experiments, programs, and applications";
|
2018-07-03 06:40:09 +01:00
|
|
|
homepage = https://github.com/QISKit/qiskit-terra;
|
2018-05-12 07:49:14 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [
|
|
|
|
pandaman
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|