Files
nixpkgs/pkgs/development/python-modules/preshed/default.nix
T
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

49 lines
894 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" ];
# don't update to 4.0.0, version was yanked
passthru.skipBulkUpdate = true;
meta = with lib; {
description = "Cython hash tables that assume keys are pre-hashed";
homepage = "https://github.com/explosion/preshed";
license = licenses.mit;
maintainers = [ ];
};
}