summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/clvm-tools
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/clvm-tools
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/clvm-tools')
-rw-r--r--pkgs/development/python-modules/clvm-tools/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/clvm-tools/default.nix b/pkgs/development/python-modules/clvm-tools/default.nix
new file mode 100644
index 000000000000..365f21e8c36e
--- /dev/null
+++ b/pkgs/development/python-modules/clvm-tools/default.nix
@@ -0,0 +1,51 @@
+{ 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"
+ ];
+
+ # give a hint to setuptools_scm on package version
+ 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;
+ };
+}