2021-05-10 16:44:43 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, clvm
|
|
|
|
, setuptools-scm
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clvm_tools";
|
|
|
|
version = "0.4.3";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Chia-Network";
|
|
|
|
repo = "clvm_tools";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-bWz3YCrakob/kROq+LOA+yD1wtIbInVrmDqtg4/cV4g=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
clvm
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"clvm_tools"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_cmd_unknown-1_txt"
|
|
|
|
];
|
|
|
|
|
2021-06-03 11:09:11 +01:00
|
|
|
# give a hint to setuptools-scm on package version
|
2021-05-10 16:44:43 +01:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION="v${version}";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools for clvm development";
|
|
|
|
homepage = "https://www.chialisp.com/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.chia.members;
|
|
|
|
};
|
|
|
|
}
|