17 buildPythonPackage rec {
20 disabled = pythonOlder "3.7";
23 inherit pname version;
24 hash = "sha256-TMRf9549z3IQzGt5c53Rk1Vq3tdrpZ3Pqc8jhj4AKzo=";
28 # prevent CMake from trying to get libraries on the Internet
30 src = ./dont_fetch_dependencies.patch;
31 inherit cxxopts ghc_filesystem;
32 catch2_src = catch2.src;
33 pybind11_src = pybind11.src;
37 nativeBuildInputs = [ cmake setuptools-scm ];
39 buildInputs = [ pybind11 ];
46 # A fix for cxxopts >=3.1
48 substituteInPlace src/cli.cpp \
49 --replace "cxxopts::OptionException" "cxxopts::exceptions::exception"
52 # CMake needs to be run by setuptools rather than by its hook
56 broken = stdenv.isDarwin;
57 description = "Chia proof of space library";
58 homepage = "https://www.chia.net/";
59 license = licenses.asl20;
60 maintainers = teams.chia.members;