at 22.05-pre 1.0 kB view raw
1{ lib 2, substituteAll 3, buildPythonPackage 4, fetchPypi 5, cmake 6, cxxopts 7, ghc_filesystem 8, pybind11 9, pytestCheckHook 10, pythonOlder 11, psutil 12, setuptools-scm 13}: 14 15buildPythonPackage rec { 16 pname = "chiapos"; 17 version = "1.0.6"; 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "sha256-Zh5AULPgbG0oYPcBZMp/vm94MPyfdtYn4P5V+1LeMqA="; 23 }; 24 25 patches = [ 26 # prevent CMake from trying to get libraries on the Internet 27 (substituteAll { 28 src = ./dont_fetch_dependencies.patch; 29 inherit cxxopts ghc_filesystem; 30 pybind11_src = pybind11.src; 31 }) 32 ]; 33 34 nativeBuildInputs = [ cmake setuptools-scm ]; 35 36 buildInputs = [ pybind11 ]; 37 38 checkInputs = [ 39 psutil 40 pytestCheckHook 41 ]; 42 43 44 # CMake needs to be run by setuptools rather than by its hook 45 dontConfigure = true; 46 47 meta = with lib; { 48 description = "Chia proof of space library"; 49 homepage = "https://www.chia.net/"; 50 license = licenses.asl20; 51 maintainers = teams.chia.members; 52 }; 53}