python3Packages.tweedledum: 1.0.0 -> 1.1.1
This commit is contained in:
parent
89ef192d11
commit
acf4b64a90
1 changed files with 6 additions and 6 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue