2025-01-27 10:55:00 +01:00

37 lines
738 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "cppy";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nucleic";
repo = "cppy";
tag = version;
hash = "sha256-RwwXwdjpq4ZjUyHkWoh3eaJDzIV3MargeoBJ+nTHsyg=";
};
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;
};
}