1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, cmake 5, ninja 6, scikit-build 7 # Check Inputs 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "tweedledum"; 13 version = "1.1.1"; 14 format = "pyproject"; 15 16 src = fetchFromGitHub{ 17 owner = "boschmitt"; 18 repo = "tweedledum"; 19 rev = "v${version}"; 20 sha256 = "sha256-wgrY5ajaMYxznyNvlD0ul1PFr3W8oV9I/OVsStlZEBM="; 21 }; 22 23 nativeBuildInputs = [ cmake ninja scikit-build ]; 24 dontUseCmakeConfigure = true; 25 26 pythonImportsCheck = [ "tweedledum" ]; 27 28 checkInputs = [ pytestCheckHook ]; 29 pytestFlagsArray = [ "python/test" ]; 30 31 meta = with lib; { 32 description = "A library for synthesizing and manipulating quantum circuits"; 33 homepage = "https://github.com/boschmitt/tweedledum"; 34 license = licenses.mit ; 35 maintainers = with maintainers; [ drewrisinger ]; 36 }; 37}