nixpkgs/pkgs/development/python-modules/qiskit/default.nix

60 lines
1.0 KiB
Nix
Raw Normal View History

2018-05-12 06:49:14 +00:00
{ stdenv
, isPy3k
, buildPythonPackage
, fetchPypi
, numpy
, scipy
, sympy
, matplotlib
, networkx
, ply
, pillow
, cffi
, requests
, requests_ntlm
, IBMQuantumExperience
, cmake
, llvmPackages
}:
buildPythonPackage rec {
pname = "qiskit";
2018-07-03 05:40:09 +00:00
version = "0.5.7";
2018-05-12 06:49:14 +00:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2018-07-03 05:40:09 +00:00
sha256 = "a5a2c6c074f8479dc83d1d599dfebf2363402a182835b8fa5742804055148b17";
2018-05-12 06:49:14 +00:00
};
buildInputs = [ cmake ]
++ stdenv.lib.optional stdenv.isDarwin llvmPackages.openmp;
propagatedBuildInputs = [
numpy
matplotlib
networkx
ply
scipy
sympy
pillow
cffi
requests
requests_ntlm
IBMQuantumExperience
];
# 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 05:40:09 +00:00
homepage = https://github.com/QISKit/qiskit-terra;
2018-05-12 06:49:14 +00:00
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [
pandaman
];
};
}