mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
08df77da32
Reasons: Last update was Oct 2018 (no activity on GitHub since), failed tests don't error out the build (i.e. failed build can still succeed), and this package has not been kept updated to reflect the changing python3Packages.qiskit API.
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cairocffi
|
|
, cairosvg
|
|
, cffi
|
|
, qiskit
|
|
, svgwrite
|
|
, colorama
|
|
, python
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "qasm2image";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nelimee";
|
|
repo = "qasm2image";
|
|
rev = "2c01756946ba9782973359dbd7bbf6651af6bee5";
|
|
sha256 = "1bnkzv7wrdvrq71dmsqanb3v2hcsxh5zaglfcxm2d9zzpmvb4a2n";
|
|
};
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
propagatedBuildInputs = [
|
|
cairocffi
|
|
cairosvg
|
|
cffi
|
|
qiskit
|
|
svgwrite
|
|
];
|
|
|
|
checkInputs = [
|
|
colorama
|
|
];
|
|
checkPhase = ''
|
|
${python.interpreter} tests/launch_tests.py
|
|
'';
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
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
|
|
];
|
|
broken = true; # last update Oct 2018, failed tests don't error the build, and out-of-date with latest python3Packages.qiskit
|
|
};
|
|
}
|