blob: 7e9996dfeeccba1f3863747c48d9597895f2168d (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
cgen,
numpy,
platformdirs,
pytools,
typing-extensions,
boost,
pytestCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "codepy";
version = "2025.1";
pyproject = true;
src = fetchFromGitHub {
owner = "inducer";
repo = "codepy";
tag = "v${version}";
hash = "sha256-PHIC3q9jQlRRoUoemVtyrl5hcZXMX28gRkI5Xpk9yBY=";
};
build-system = [ hatchling ];
dependencies = [
cgen
numpy
platformdirs
pytools
typing-extensions
];
pythonImportsCheck = [ "codepy" ];
doCheck = false; # tests require boost setup for ad hoc module compilation
meta = {
homepage = "https://github.com/inducer/codepy";
description = "Generate and execute native code at run time, from Python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ atila ];
};
}
|