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