2017-05-14 23:26:25 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2018-03-12 22:44:45 +00:00
|
|
|
, fetchPypi
|
2017-05-14 23:26:25 +01:00
|
|
|
, cython
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "murmurhash";
|
2018-11-09 06:13:54 +00:00
|
|
|
version = "1.0.1";
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2018-03-12 22:44:45 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-09 06:13:54 +00:00
|
|
|
sha256 = "02wbyjixvzd6l1mljpm1ci7x835zhk3nqxgy7kvbi4jimvairs9q";
|
2017-05-14 23:26:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2018-03-12 22:44:45 +00:00
|
|
|
# No test
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-05-14 23:26:25 +01:00
|
|
|
checkPhase = ''
|
2018-03-12 22:44:45 +00:00
|
|
|
pytest murmurhash
|
2017-05-14 23:26:25 +01:00
|
|
|
'';
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2017-05-14 23:26:25 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cython bindings for MurmurHash2";
|
|
|
|
homepage = https://github.com/explosion/murmurhash;
|
|
|
|
license = licenses.mit;
|
2018-03-12 22:44:45 +00:00
|
|
|
maintainers = with maintainers; [ aborsu sdll ];
|
|
|
|
};
|
2017-05-14 23:26:25 +01:00
|
|
|
}
|