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