2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cmake
|
|
|
|
, pybind11
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chiabip158";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "1.1";
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-13 20:06:32 +00:00
|
|
|
hash = "sha256-2iQeiQl/CLq2zwo/mUKBwIwV5wlNYUdUfENGNxeDMU8=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake setuptools-scm ];
|
|
|
|
|
|
|
|
buildInputs = [ pybind11 ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# CMake needs to be run by setuptools rather than by its hook
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Chia's implementation of BIP 158";
|
|
|
|
homepage = "https://www.chia.net/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.chia.members;
|
|
|
|
};
|
|
|
|
}
|