nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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.1";
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-2iQeiQl/CLq2zwo/mUKBwIwV5wlNYUdUfENGNxeDMU8=";
20 };
21
22 nativeBuildInputs = [ cmake setuptools-scm ];
23
24 buildInputs = [ pybind11 ];
25
26 checkInputs = [
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}