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