summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/codepy/default.nix
blob: ccf1eeaad9eff140f57f9182d0899e1917673c30 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytools
, appdirs
, six
, cgen
}:

buildPythonPackage rec {
  pname = "codepy";
  version = "2019.1";

  src = fetchFromGitHub {
    owner = "inducer";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-viMfB/nDrvDA/IGRZEX+yXylxbbmqbh/fgdYXBzK0zM=";
  };

  buildInputs = [ pytools six cgen ];
  propagatedBuildInputs = [ appdirs ];

  pythonImportsCheck = [ "codepy" ];

  # Tests are broken
  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/inducer/codepy";
    description = "Generate and execute native code at run time, from Python";
    license = licenses.mit;
    maintainers = with maintainers; [ atila ];
  };
}