pythonPackages.qiskit: 0.14.0 -> 0.17.0
Updates the qiskit package to follow new Git structure, where subcomponents are broken into separate packages (terra, aer, etc). Refactor/cleanup
This commit is contained in:
parent
42a1271047
commit
e6b50a24b7
@ -1,65 +1,49 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, isPy3k
|
, pythonOlder
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, numpy
|
# Python Inputs
|
||||||
, scipy
|
, qiskit-aer
|
||||||
, sympy
|
, qiskit-aqua
|
||||||
, matplotlib
|
, qiskit-ibmq-provider
|
||||||
, networkx
|
, qiskit-ignis
|
||||||
, ply
|
, qiskit-terra
|
||||||
, pillow
|
# Check Inputs
|
||||||
, cffi
|
, pytestCheckHook
|
||||||
, requests
|
|
||||||
, requests_ntlm
|
|
||||||
, IBMQuantumExperience
|
|
||||||
, jsonschema
|
|
||||||
, psutil
|
|
||||||
, cmake
|
|
||||||
, llvmPackages
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "qiskit";
|
pname = "qiskit";
|
||||||
version = "0.14.0";
|
# NOTE: This version denotes a specific set of subpackages. See https://qiskit.org/documentation/release_notes.html#version-history
|
||||||
|
version = "0.17.0";
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "Qiskit";
|
||||||
sha256 = "d086a21d0eee61bb12e1f2cd6148a7292005fd10584ca33d6c404dd5c53ba95f";
|
repo = "qiskit";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1cnjcvvzklyq102fipqnwd5ham0sp0451gp7j79cwwsxzvji6pcc";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake ]
|
|
||||||
++ stdenv.lib.optional stdenv.isDarwin llvmPackages.openmp;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
qiskit-aer
|
||||||
matplotlib
|
qiskit-aqua
|
||||||
networkx
|
qiskit-ibmq-provider
|
||||||
ply
|
qiskit-ignis
|
||||||
scipy
|
qiskit-terra
|
||||||
sympy
|
|
||||||
pillow
|
|
||||||
cffi
|
|
||||||
requests
|
|
||||||
requests_ntlm
|
|
||||||
IBMQuantumExperience
|
|
||||||
jsonschema
|
|
||||||
psutil
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Pypi's tarball doesn't contain tests
|
checkInputs = [ pytestCheckHook ];
|
||||||
doCheck = false;
|
dontUseSetuptoolsCheck = true;
|
||||||
|
# following doesn't work b/c they are distributed across different nix sitePackages dirs. Tested with pytest though.
|
||||||
|
# pythonImportsCheck = [ "qiskit" "qiskit.terra" "qiskit.ignis" "qiskit.aer" "qiskit.aqua" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Quantum Software Development Kit for writing quantum computing experiments, programs, and applications";
|
description = "Software for developing quantum computing programs";
|
||||||
homepage = https://github.com/QISKit/qiskit-terra;
|
homepage = "https://qiskit.org";
|
||||||
license = stdenv.lib.licenses.asl20;
|
downloadPage = "https://github.com/QISKit/qiskit/releases";
|
||||||
maintainers = with stdenv.lib.maintainers; [
|
license = lib.licenses.asl20;
|
||||||
pandaman
|
maintainers = with lib.maintainers; [ drewrisinger pandaman ];
|
||||||
];
|
|
||||||
# Needs to be updated and have its new dependencies added
|
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user