depot/third_party/nixpkgs/pkgs/development/python-modules/fnv-hash-fast/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

47 lines
923 B
Nix

{
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 ];
};
}