evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / quantiphy-eval / default.nix
bloba95cf4903b5dd68c3f222e4667cf007eb89ce6fc
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   flit-core,
6   inform,
7   pythonOlder,
8   sly,
9 }:
11 buildPythonPackage rec {
12   pname = "quantiphy-eval";
13   version = "0.5";
14   format = "pyproject";
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "KenKundert";
20     repo = "quantiphy_eval";
21     rev = "v${version}";
22     hash = "sha256-7VHcuINhe17lRNkHUnZkVOEtD6mVWk5gu0NbrLZwprg=";
23   };
25   nativeBuildInputs = [ flit-core ];
27   propagatedBuildInputs = [
28     inform
29     sly
30   ];
32   # this has a circular dependency on quantiphy
33   preBuild = ''
34     sed -i '/quantiphy>/d' ./pyproject.toml
35   '';
37   # tests require quantiphy import
38   doCheck = false;
40   # Also affected by the circular dependency on quantiphy
41   # pythonImportsCheck = [
42   #   "quantiphy_eval"
43   # ];
45   meta = with lib; {
46     description = "QuantiPhy support for evals in-line";
47     homepage = "https://github.com/KenKundert/quantiphy_eval/";
48     changelog = "https://github.com/KenKundert/quantiphy_eval/releases/tag/v${version}";
49     license = licenses.mit;
50     maintainers = with maintainers; [ jpetrucciani ];
51   };