depot/third_party/nixpkgs/pkgs/development/python-modules/preshed/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

50 lines
838 B
Nix

{ lib
, buildPythonPackage
, cymem
, cython
, python
, fetchPypi
, murmurhash
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "preshed";
version = "3.0.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-chhjxSRP/NJlGtCSiVGix8d7EC9OEaJRrYXTfudiFmA=";
};
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
cymem
murmurhash
];
nativeCheckInputs = [
pytestCheckHook
];
# Tests have import issues with 3.0.8
doCheck = false;
pythonImportsCheck = [
"preshed"
];
meta = with lib; {
description = "Cython hash tables that assume keys are pre-hashed";
homepage = "https://github.com/explosion/preshed";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}