Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 47 lines 923 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cython, 6 poetry-core, 7 setuptools, 8 fnvhash, 9 pytest-cov-stub, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "fnv-hash-fast"; 15 version = "1.0.2"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "bdraco"; 20 repo = "fnv-hash-fast"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-kJQZnj1ja7cVZSDOuUI3rkNIvyH508wFKAvJ5XfwCNU="; 23 }; 24 25 build-system = [ 26 cython 27 poetry-core 28 setuptools 29 ]; 30 31 dependencies = [ fnvhash ]; 32 33 pythonImportsCheck = [ "fnv_hash_fast" ]; 34 35 nativeCheckInputs = [ 36 pytest-cov-stub 37 pytestCheckHook 38 ]; 39 40 meta = with lib; { 41 description = "Fast version of fnv1a"; 42 homepage = "https://github.com/bdraco/fnv-hash-fast"; 43 changelog = "https://github.com/bdraco/fnv-hash-fast/blob/${src.rev}/CHANGELOG.md"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ hexa ]; 46 }; 47}