qasm2image: init at 0.5.0
This commit is contained in:
parent
1aed57c222
commit
1642e85877
47
pkgs/development/python-modules/qasm2image/default.nix
Normal file
47
pkgs/development/python-modules/qasm2image/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user