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