depot/third_party/nixpkgs/pkgs/development/python-modules/fnv-hash-fast/default.nix

48 lines
923 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
poetry-core,
setuptools,
fnvhash,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fnv-hash-fast";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "fnv-hash-fast";
rev = "refs/tags/v${version}";
hash = "sha256-kJQZnj1ja7cVZSDOuUI3rkNIvyH508wFKAvJ5XfwCNU=";
};
build-system = [
cython
poetry-core
setuptools
];
dependencies = [ fnvhash ];
pythonImportsCheck = [ "fnv_hash_fast" ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
meta = with lib; {
description = "Fast version of fnv1a";
homepage = "https://github.com/bdraco/fnv-hash-fast";
changelog = "https://github.com/bdraco/fnv-hash-fast/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}