marisa-python: fix build (#57013)

This commit is contained in:
vanzef 2019-03-08 23:37:17 +03:00 committed by xeji
parent eeb373386f
commit 6a11ba39ca

View file

@ -1,18 +1,22 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, marisa, swig }:
{ stdenv, buildPythonPackage, fetchFromGitHub, marisa, swig
, isPy3k
}:
buildPythonPackage rec {
pname = "marisa";
version = "1.3.40";
disabled = isPy3k;
src = fetchFromGitHub {
owner = "s-yata";
repo = "marisa-trie";
rev = "59e410597981475bae94d9d9eb252c1d9790dc2f";
sha256 = "0z4bf55np08q3cbi6gvj3cpw3zp8kf2d0jq6k74pjk066m7rapbb";
rev = "8dba9850b89d7828ebf33b8ab84df2b54d31260b";
sha256 = "0pkp9fggk53lxlicfwrskgx33qplc4v6njbavlnz4x4z63zd4933";
};
nativeBuildInputs = [ swig marisa ];
buildinputs = [ marisa ];
buildInputs = [ marisa ];
sourceRoot = "${src.name}/bindings/python";