summary refs log tree commit diff
path: root/pkgs/development/python-modules/clvm/default.nix
blob: 2853bfe5318247023b501ad747b947cb393751f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, blspy
, setuptools-scm
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "clvm";
  version = "0.9.7";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "Chia-Network";
    repo = "clvm";
    rev = version;
    sha256 = "sha256-kTmuiy0IbTGjDokZjxp3p8lr/0uVxG/0pRN2hETLBtA=";
  };

  nativeBuildInputs = [
    setuptools-scm
  ];

  # give a hint to setuptools-scm on package version
  SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";

  propagatedBuildInputs = [
    blspy
  ];

  checkInputs = [
    pytestCheckHook
  ];

  disabledTestPaths = [
    # all tests in this file have a circular dependency on clvm-tools
    "tests/cmds_test.py"
  ];

  pythonImportsCheck = [
    "clvm"
  ];

  meta = with lib; {
    description = "Chia Lisp virtual machine";
    homepage = "https://www.chia.net/";
    license = licenses.asl20;
    maintainers = teams.chia.members;
  };
}