nixpkgs/pkgs/development/python-modules/qasm2image/default.nix
Maximilian Bosch 16c2c6b66d python3Packages.qasm2image: require Python 3.5 at least
According to `setup.py` in 0.8 older Python wouldn't work.
2019-03-13 11:36:37 +01:00

52 lines
915 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, cairocffi
, cairosvg
, cffi
, qiskit
, svgwrite
, colorama
, python
, pythonOlder
}:
buildPythonPackage rec {
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
];
};
}