1{ lib 2, buildPythonPackage 3, fetchPypi 4, cmake 5, pybind11 6, pythonOlder 7, pytestCheckHook 8, setuptools-scm 9}: 10 11buildPythonPackage rec { 12 pname = "chiabip158"; 13 version = "1.0"; 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-dG6A4n30uPswQWY/Wmi75HK4ZMCDNr9Lt05FRWEPYV8="; 19 }; 20 21 nativeBuildInputs = [ cmake setuptools-scm ]; 22 23 buildInputs = [ pybind11 ]; 24 25 checkInputs = [ 26 pytestCheckHook 27 ]; 28 29 # CMake needs to be run by setuptools rather than by its hook 30 dontConfigure = true; 31 32 meta = with lib; { 33 description = "Chia's implementation of BIP 158"; 34 homepage = "https://www.chia.net/"; 35 license = licenses.asl20; 36 maintainers = teams.chia.members; 37 }; 38}