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