python3Packages.tweedledum: 1.0.0 -> 1.1.1

This commit is contained in:
Drew Risinger 2021-11-11 20:01:34 -05:00
parent 89ef192d11
commit acf4b64a90

View file

@ -4,18 +4,20 @@
, cmake , cmake
, ninja , ninja
, scikit-build , scikit-build
# Check Inputs
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "tweedledum"; pname = "tweedledum";
version = "1.0.0"; version = "1.1.1";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub{ src = fetchFromGitHub{
owner = "boschmitt"; owner = "boschmitt";
repo = "tweedledum"; repo = "tweedledum";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-59lJzdw9HLJ9ADxp/a3KW4v5aU/dYm27NSYoz9D49i4="; sha256 = "sha256-wgrY5ajaMYxznyNvlD0ul1PFr3W8oV9I/OVsStlZEBM=";
}; };
nativeBuildInputs = [ cmake ninja scikit-build ]; nativeBuildInputs = [ cmake ninja scikit-build ];
@ -23,10 +25,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "tweedledum" ]; pythonImportsCheck = [ "tweedledum" ];
# TODO: use pytest, but had issues with finding the correct directories checkInputs = [ pytestCheckHook ];
checkPhase = '' pytestFlagsArray = [ "python/test" ];
python -m unittest discover -s ./python/test -t .
'';
meta = with lib; { meta = with lib; {
description = "A library for synthesizing and manipulating quantum circuits"; description = "A library for synthesizing and manipulating quantum circuits";