From 19b3863ba70a2b17d176b271b1342751835f880a Mon Sep 17 00:00:00 2001 From: Louis Bettens Date: Sun, 9 May 2021 11:12:20 +0200 Subject: [PATCH] pythonPackages.chiabip158: init at 1.0 --- .../python-modules/chiabip158/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/chiabip158/default.nix diff --git a/pkgs/development/python-modules/chiabip158/default.nix b/pkgs/development/python-modules/chiabip158/default.nix new file mode 100644 index 000000000000..f2c309593610 --- /dev/null +++ b/pkgs/development/python-modules/chiabip158/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, cmake +, pybind11 +, pythonOlder +, pytestCheckHook +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "chiabip158"; + version = "1.0"; + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-dG6A4n30uPswQWY/Wmi75HK4ZMCDNr9Lt05FRWEPYV8="; + }; + + nativeBuildInputs = [ cmake setuptools-scm ]; + + buildInputs = [ pybind11 ]; + + checkInputs = [ + pytestCheckHook + ]; + + # CMake needs to be run by setuptools rather than by its hook + dontConfigure = true; + + meta = with lib; { + description = "Chia's implementation of BIP 158"; + homepage = "https://www.chia.net/"; + license = licenses.asl20; + maintainers = teams.chia.members; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 25bc1d8eeea5..a5dfeb101184 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1345,6 +1345,8 @@ in { chevron = callPackage ../development/python-modules/chevron { }; + chiabip158 = callPackage ../development/python-modules/chiabip158 { }; + chiapos = callPackage ../development/python-modules/chiapos { }; chiavdf = callPackage ../development/python-modules/chiavdf { };