ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
37 lines
840 B
Nix
37 lines
840 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, ninja
|
|
, scikit-build
|
|
# Check Inputs
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tweedledum";
|
|
version = "1.1.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub{
|
|
owner = "boschmitt";
|
|
repo = "tweedledum";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-wgrY5ajaMYxznyNvlD0ul1PFr3W8oV9I/OVsStlZEBM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ninja scikit-build ];
|
|
dontUseCmakeConfigure = true;
|
|
|
|
pythonImportsCheck = [ "tweedledum" ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
pytestFlagsArray = [ "python/test" ];
|
|
|
|
meta = with lib; {
|
|
description = "A library for synthesizing and manipulating quantum circuits";
|
|
homepage = "https://github.com/boschmitt/tweedledum";
|
|
license = licenses.mit ;
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
};
|
|
}
|