2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-05-20 23:08:51 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cmake
|
|
|
|
, pybind11
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chiabip158";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.3";
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-HUgYVVQ7yc2X3ffnV7mCZf+oFUHl/29Mb4n91dRJ7gc=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake setuptools-scm ];
|
|
|
|
|
|
|
|
buildInputs = [ pybind11 ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# CMake needs to be run by setuptools rather than by its hook
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "Chia's implementation of BIP 158";
|
|
|
|
homepage = "https://www.chia.net/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.chia.members;
|
|
|
|
};
|
|
|
|
}
|