summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cppy/default.nix
blob: ef9305a293faaa9a2a1327c97487040e6803337d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "cppy";
  version = "1.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nucleic";
    repo = "cppy";
    tag = version;
    hash = "sha256-/u9JQ2ivjSlBPodfAjeDmJ+HUu1rFZ58p3V5L2dy4Jk=";
  };

  build-system = [ setuptools-scm ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "cppy" ];

  meta = {
    changelog = "https://github.com/nucleic/cppy/releases/tag/${src.tag}";
    description = "C++ headers for C extension development";
    homepage = "https://github.com/nucleic/cppy";
    license = lib.licenses.bsd3;
  };
}