python3Packages.tweedledum: init at 1.0.0
This commit is contained in:
parent
08868ba563
commit
e7650150ad
2 changed files with 39 additions and 0 deletions
37
pkgs/development/python-modules/tweedledum/default.nix
Normal file
37
pkgs/development/python-modules/tweedledum/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, ninja
|
||||||
|
, scikit-build
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "tweedledum";
|
||||||
|
version = "1.0.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub{
|
||||||
|
owner = "boschmitt";
|
||||||
|
repo = "tweedledum";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-59lJzdw9HLJ9ADxp/a3KW4v5aU/dYm27NSYoz9D49i4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ninja scikit-build ];
|
||||||
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "tweedledum" ];
|
||||||
|
|
||||||
|
# TODO: use pytest, but had issues with finding the correct directories
|
||||||
|
checkPhase = ''
|
||||||
|
python -m unittest discover -s ./python/test -t .
|
||||||
|
'';
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -8565,6 +8565,8 @@ in {
|
||||||
|
|
||||||
tvnamer = callPackage ../development/python-modules/tvnamer { };
|
tvnamer = callPackage ../development/python-modules/tvnamer { };
|
||||||
|
|
||||||
|
tweedledum = callPackage ../development/python-modules/tweedledum { };
|
||||||
|
|
||||||
tweepy = callPackage ../development/python-modules/tweepy { };
|
tweepy = callPackage ../development/python-modules/tweepy { };
|
||||||
|
|
||||||
twentemilieu = callPackage ../development/python-modules/twentemilieu { };
|
twentemilieu = callPackage ../development/python-modules/twentemilieu { };
|
||||||
|
|
Loading…
Reference in a new issue