Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 37 lines 878 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, cmake 5, ninja 6, scikit-build 7}: 8 9buildPythonPackage rec { 10 pname = "tweedledum"; 11 version = "1.0.0"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub{ 15 owner = "boschmitt"; 16 repo = "tweedledum"; 17 rev = "v${version}"; 18 hash = "sha256-59lJzdw9HLJ9ADxp/a3KW4v5aU/dYm27NSYoz9D49i4="; 19 }; 20 21 nativeBuildInputs = [ cmake ninja scikit-build ]; 22 dontUseCmakeConfigure = true; 23 24 pythonImportsCheck = [ "tweedledum" ]; 25 26 # TODO: use pytest, but had issues with finding the correct directories 27 checkPhase = '' 28 python -m unittest discover -s ./python/test -t . 29 ''; 30 31 meta = with lib; { 32 description = "A library for synthesizing and manipulating quantum circuits"; 33 homepage = "https://github.com/boschmitt/tweedledum"; 34 license = licenses.mit ; 35 maintainers = with maintainers; [ drewrisinger ]; 36 }; 37}