diff --git a/pkgs/development/python-modules/quantiphy-eval/default.nix b/pkgs/development/python-modules/quantiphy-eval/default.nix new file mode 100644 index 000000000000..b89d85096eb1 --- /dev/null +++ b/pkgs/development/python-modules/quantiphy-eval/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, inform +, sly +}: + +buildPythonPackage rec { + pname = "quantiphy-eval"; + version = "0.5"; + + src = fetchFromGitHub { + owner = "KenKundert"; + repo = "quantiphy_eval"; + rev = "v${version}"; + sha256 = "sha256-7VHcuINhe17lRNkHUnZkVOEtD6mVWk5gu0NbrLZwprg="; + }; + + format = "flit"; + propagatedBuildInputs = [ + inform + sly + ]; + + # this has a circular dependency on quantiphy + preBuild = '' + sed -i '/quantiphy>/d' ./pyproject.toml + ''; + + # tests require quantiphy import + doCheck = false; + + meta = with lib; { + description = "QuantiPhy support for evals in-line"; + homepage = "https://github.com/KenKundert/quantiphy_eval/"; + license = licenses.mit; + maintainers = with maintainers; [ jpetrucciani ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 78018b8fac3e..02cfba1f0ef3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9589,6 +9589,8 @@ self: super: with self; { quantities = callPackage ../development/python-modules/quantities { }; + quantiphy-eval = callPackage ../development/python-modules/quantiphy-eval { }; + quantum-gateway = callPackage ../development/python-modules/quantum-gateway { }; querystring_parser = callPackage ../development/python-modules/querystring-parser { };