mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, inform
|
|
, pythonOlder
|
|
, sly
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "quantiphy-eval";
|
|
version = "0.5";
|
|
format = "flit";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KenKundert";
|
|
repo = "quantiphy_eval";
|
|
rev = "v${version}";
|
|
hash = "sha256-7VHcuINhe17lRNkHUnZkVOEtD6mVWk5gu0NbrLZwprg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|