qasm2image: init at 0.5.0

This commit is contained in:
pandaman64 2018-05-12 16:02:57 +09:00
parent 1aed57c222
commit 1642e85877
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cairocffi
, cairosvg
, cffi
, qiskit
, svgwrite
, colorama
, python
}:
buildPythonPackage rec {
pname = "qasm2image";
version = "0.5.0";
src = fetchFromGitHub {
owner = "nelimeee";
repo = "qasm2image";
rev = "7f3c3e4d1701b8b284ef0352aa3a47722ebbbcaa";
sha256 = "129xlpwp36h2czzw1wcl8df2864zg3if2gaad1v18ah1cf68b0f3";
};
propagatedBuildInputs = [
cairocffi
cairosvg
cffi
qiskit
svgwrite
];
checkInputs = [
colorama
];
checkPhase = ''
${python.interpreter} tests/launch_tests.py
'';
meta = {
description = "A Python module to visualise quantum circuit";
homepage = https://github.com/nelimeee/qasm2image;
license = lib.licenses.cecill-b;
maintainers = with lib.maintainers; [
pandaman
];
};
}

View File

@ -18205,6 +18205,8 @@ EOF
IBMQuantumExperience = callPackage ../development/python-modules/ibmquantumexperience { };
qiskit = callPackage ../development/python-modules/qiskit { };
qasm2image = callPackage ../development/python-modules/qasm2image { };
});
in fix' (extends overrides packages)