nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 inform,
7 sly,
8}:
9
10buildPythonPackage rec {
11 pname = "quantiphy-eval";
12 version = "0.5";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "KenKundert";
17 repo = "quantiphy_eval";
18 rev = "v${version}";
19 hash = "sha256-7VHcuINhe17lRNkHUnZkVOEtD6mVWk5gu0NbrLZwprg=";
20 };
21
22 nativeBuildInputs = [ flit-core ];
23
24 propagatedBuildInputs = [
25 inform
26 sly
27 ];
28
29 # this has a circular dependency on quantiphy
30 preBuild = ''
31 sed -i '/quantiphy>/d' ./pyproject.toml
32 '';
33
34 # tests require quantiphy import
35 doCheck = false;
36
37 # Also affected by the circular dependency on quantiphy
38 # pythonImportsCheck = [
39 # "quantiphy_eval"
40 # ];
41
42 meta = {
43 description = "QuantiPhy support for evals in-line";
44 homepage = "https://github.com/KenKundert/quantiphy_eval/";
45 changelog = "https://github.com/KenKundert/quantiphy_eval/releases/tag/v${version}";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ jpetrucciani ];
48 };
49}