depot/third_party/nixpkgs/pkgs/development/python-modules/quantiphy-eval/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
inform,
pythonOlder,
sly,
}:
buildPythonPackage rec {
pname = "quantiphy-eval";
version = "0.5";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "KenKundert";
repo = "quantiphy_eval";
rev = "v${version}";
hash = "sha256-7VHcuINhe17lRNkHUnZkVOEtD6mVWk5gu0NbrLZwprg=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
inform
sly
];
# this has a circular dependency on quantiphy
preBuild = ''
sed -i '/quantiphy>/d' ./pyproject.toml
'';
# tests require quantiphy import
doCheck = false;
# Also affected by the circular dependency on quantiphy
# pythonImportsCheck = [
# "quantiphy_eval"
# ];
meta = with lib; {
description = "QuantiPhy support for evals in-line";
homepage = "https://github.com/KenKundert/quantiphy_eval/";
changelog = "https://github.com/KenKundert/quantiphy_eval/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
}