1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, blspy
6, setuptools-scm
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "clvm";
12 version = "0.9.7";
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "Chia-Network";
17 repo = "clvm";
18 rev = version;
19 hash = "sha256-kTmuiy0IbTGjDokZjxp3p8lr/0uVxG/0pRN2hETLBtA=";
20 };
21
22 nativeBuildInputs = [
23 setuptools-scm
24 ];
25
26 # give a hint to setuptools-scm on package version
27 SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
28
29 propagatedBuildInputs = [
30 blspy
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 ];
36
37 disabledTestPaths = [
38 # all tests in this file have a circular dependency on clvm-tools
39 "tests/cmds_test.py"
40 ];
41
42 pythonImportsCheck = [
43 "clvm"
44 ];
45
46 meta = with lib; {
47 description = "Chia Lisp virtual machine";
48 homepage = "https://www.chia.net/";
49 license = licenses.asl20;
50 maintainers = teams.chia.members;
51 };
52}