1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, pytestCheckHook
6, setuptools-scm
7}:
8
9buildPythonPackage rec {
10 pname = "cppy";
11 version = "1.2.1";
12 disabled = pythonOlder "3.7";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-g7Q78XsQhawVxd69tCFU8Ti5KCNLIURzWJgfadDW/hs=";
17 };
18
19 nativeBuildInputs = [
20 setuptools-scm
21 ];
22
23 checkInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "cppy" ];
26
27 meta = {
28 description = "C++ headers for C extension development";
29 homepage = "https://github.com/nucleic/cppy";
30 license = lib.licenses.bsd3;
31 };
32}