lol

Merge pull request #335857 from bcdarwin/init-python3-pyzx

python312Packages.pyzx: init at 0.8.0

authored by

Robert Schütz and committed by
GitHub
f02fa2f6 3b20755e

+69
+67
pkgs/development/python-modules/pyzx/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + pythonOlder, 5 + fetchFromGitHub, 6 + pythonRelaxDepsHook, 7 + pytestCheckHook, 8 + setuptools, 9 + ipywidgets, 10 + lark, 11 + numpy, 12 + pyperclip, 13 + tqdm, 14 + typing-extensions, 15 + }: 16 + 17 + buildPythonPackage rec { 18 + pname = "pyzx"; 19 + version = "0.8.0"; 20 + pyproject = true; 21 + 22 + disabled = pythonOlder "3.8"; 23 + 24 + src = fetchFromGitHub { 25 + owner = "zxcalc"; 26 + repo = "pyzx"; 27 + rev = "refs/tags/v${version}"; 28 + hash = "sha256-4yc4P2v2L/F/A1A9z41ow2KA0aUA+3SJyC+wyMWzhwM="; 29 + }; 30 + 31 + build-system = [ setuptools ]; 32 + 33 + dependencies = [ 34 + ipywidgets 35 + lark 36 + numpy 37 + pyperclip 38 + tqdm 39 + typing-extensions 40 + ]; 41 + 42 + pythonRelaxDeps = [ "ipywidgets" ]; 43 + 44 + nativeCheckInputs = [ pytestCheckHook ]; 45 + disabledTestPaths = [ 46 + # too expensive, and print results instead of reporting failures: 47 + "tests/long_scalar_test.py" 48 + "tests/long_test.py" 49 + ]; 50 + 51 + pythonImportsCheck = [ 52 + "pyzx" 53 + "pyzx.circuit" 54 + "pyzx.graph" 55 + "pyzx.routing" 56 + "pyzx.local_search" 57 + "pyzx.scripts" 58 + ]; 59 + 60 + meta = { 61 + description = "Library for quantum circuit rewriting and optimisation using the ZX-calculus"; 62 + homepage = "https://github.com/zxcalc/pyzx"; 63 + changelog = "https://github.com/zxcalc/pyzx/blob/${src.rev}/CHANGELOG.md"; 64 + license = lib.licenses.asl20; 65 + maintainers = with lib.maintainers; [ bcdarwin ]; 66 + }; 67 + }
+2
pkgs/top-level/python-packages.nix
··· 13320 13320 13321 13321 pyzmq = callPackage ../development/python-modules/pyzmq { }; 13322 13322 13323 + pyzx = callPackage ../development/python-modules/pyzx { }; 13324 + 13323 13325 qbittorrent-api = callPackage ../development/python-modules/qbittorrent-api { }; 13324 13326 13325 13327 qasync = callPackage ../development/python-modules/qasync { };