2018-06-23 14:27:58 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, ninja, boost, meson, pkgconfig, nix, isPy3k }:
|
2017-12-29 16:38:05 +00:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pythonix";
|
2018-06-15 11:52:08 +01:00
|
|
|
version = "0.1.4";
|
2018-06-23 14:27:58 +01:00
|
|
|
format = "other";
|
2017-12-29 16:38:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "pythonix";
|
|
|
|
rev = "v${version}";
|
2018-06-15 11:52:08 +01:00
|
|
|
sha256 = "1q1fagfwzvmcm1n3a0liay7m5krazmhw9l001m90rrz2x7vrsqwk";
|
2017-12-29 16:38:05 +00:00
|
|
|
};
|
|
|
|
|
2018-06-15 11:52:08 +01:00
|
|
|
disabled = !isPy3k;
|
2017-12-29 16:38:05 +00:00
|
|
|
|
2018-06-15 11:52:08 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ nix boost ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
ninja test
|
|
|
|
'';
|
2017-12-29 16:38:05 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''
|
|
|
|
Eval nix code from python.
|
|
|
|
'';
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|