1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytools,
6 appdirs,
7 six,
8 cgen,
9}:
10
11buildPythonPackage rec {
12 pname = "codepy";
13 version = "2019.1";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "inducer";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-viMfB/nDrvDA/IGRZEX+yXylxbbmqbh/fgdYXBzK0zM=";
21 };
22
23 buildInputs = [
24 pytools
25 six
26 cgen
27 ];
28 propagatedBuildInputs = [ appdirs ];
29
30 pythonImportsCheck = [ "codepy" ];
31
32 # Tests are broken
33 doCheck = false;
34
35 meta = with lib; {
36 homepage = "https://github.com/inducer/codepy";
37 description = "Generate and execute native code at run time, from Python";
38 license = licenses.mit;
39 maintainers = with maintainers; [ atila ];
40 };
41}