3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/murmurhash/default.nix

38 lines
694 B
Nix
Raw Normal View History

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 {
pname = "murmurhash";
version = "1.0.4";
2018-03-12 22:44:45 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "422084ac1fe994cb7c893689c600923dee4e2c3fc74e832f7d9a8d6fdcc362d5";
2017-05-14 23:26:25 +01:00
};
2019-02-15 08:46:46 +00:00
postPatch = ''
substituteInPlace setup.py --replace "'wheel>=0.32.0,<0.33.0'" ""
'';
2017-05-14 23:26:25 +01:00
buildInputs = [
cython
];
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-05-14 23:26:25 +01:00
meta = with stdenv.lib; {
description = "Cython bindings for MurmurHash2";
homepage = "https://github.com/explosion/murmurhash";
2017-05-14 23:26:25 +01:00
license = licenses.mit;
2018-03-12 22:44:45 +00:00
maintainers = with maintainers; [ aborsu sdll ];
};
2017-05-14 23:26:25 +01:00
}