2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools-scm,
|
2020-06-15 15:56:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cppy";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "1.2.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-g7Q78XsQhawVxd69tCFU8Ti5KCNLIURzWJgfadDW/hs=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "cppy" ];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "C++ headers for C extension development";
|
|
|
|
homepage = "https://github.com/nucleic/cppy";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|