1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7 setuptools-scm,
8}:
9
10buildPythonPackage rec {
11 pname = "cppy";
12 version = "1.3.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "nucleic";
19 repo = "cppy";
20 tag = version;
21 hash = "sha256-/u9JQ2ivjSlBPodfAjeDmJ+HUu1rFZ58p3V5L2dy4Jk=";
22 };
23
24 build-system = [ setuptools-scm ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "cppy" ];
29
30 meta = {
31 changelog = "https://github.com/nucleic/cppy/releases/tag/${src.tag}";
32 description = "C++ headers for C extension development";
33 homepage = "https://github.com/nucleic/cppy";
34 license = lib.licenses.bsd3;
35 };
36}