summary refs log tree commit diff
path: root/pkgs/development/python-modules/pythonix/default.nix
blob: fd8012a24d32f39afe75e0b22b4e32ad626f3024 (plain) (blame)
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
{ stdenv, buildPythonPackage, fetchFromGitHub, ninja, boost, meson, pkgconfig, nix, isPy3k }:

buildPythonPackage rec {
  pname = "pythonix";
  version = "0.1.4";
  format = "other";

  src = fetchFromGitHub {
    owner = "Mic92";
    repo = "pythonix";
    rev = "v${version}";
    sha256 = "1q1fagfwzvmcm1n3a0liay7m5krazmhw9l001m90rrz2x7vrsqwk";
  };

  disabled = !isPy3k;

  nativeBuildInputs = [ meson ninja pkgconfig ];

  buildInputs = [ nix boost ];

  checkPhase = ''
    ninja test
  '';

  meta = with stdenv.lib; {
    description = ''
       Eval nix code from python.
    '';
    maintainers = [ maintainers.mic92 ];
    license = licenses.mit;
  };
}