2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, clvm
|
2022-09-09 14:08:57 +00:00
|
|
|
, clvm-tools-rs
|
2021-05-20 23:08:51 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clvm_tools";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.4.5";
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Chia-Network";
|
|
|
|
repo = "clvm_tools";
|
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-7FUZh9w6AM+7l7Br9V/ovS/1H62BLoas5gCrbeMvBAc=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
clvm
|
2022-09-09 14:08:57 +00:00
|
|
|
clvm-tools-rs
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"clvm_tools"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_cmd_unknown-1_txt"
|
|
|
|
];
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
# give a hint to setuptools-scm on package version
|
2021-05-20 23:08:51 +00: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;
|
|
|
|
};
|
|
|
|
}
|