2020-06-07 11:15:26 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-03-27 13:35:11 +02:00
|
|
|
, pythonOlder
|
2022-03-23 12:48:47 +01:00
|
|
|
, pytestCheckHook
|
2022-03-27 13:35:11 +02:00
|
|
|
, setuptools-scm
|
2020-06-07 11:15:26 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cppy";
|
2022-03-31 01:05:06 +02:00
|
|
|
version = "1.2.1";
|
2022-03-27 13:35:11 +02:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-06-07 11:15:26 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-31 01:05:06 +02:00
|
|
|
sha256 = "sha256-g7Q78XsQhawVxd69tCFU8Ti5KCNLIURzWJgfadDW/hs=";
|
2020-06-07 11:15:26 +02:00
|
|
|
};
|
|
|
|
|
2022-03-27 13:35:11 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-06-07 11:15:26 +02:00
|
|
|
|
2022-03-23 12:48:47 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2022-03-27 13:35:11 +02:00
|
|
|
|
2022-03-23 12:48:47 +01:00
|
|
|
pythonImportsCheck = [ "cppy" ];
|
|
|
|
|
2020-06-07 11:15:26 +02:00
|
|
|
meta = {
|
|
|
|
description = "C++ headers for C extension development";
|
|
|
|
homepage = "https://github.com/nucleic/cppy";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2020-08-25 04:07:09 +02:00
|
|
|
}
|